about summary refs log tree commit diff stats
path: root/src/utils
diff options
context:
space:
mode:
authorbptato <nincsnevem662@gmail.com>2022-12-10 19:05:38 +0100
committerbptato <nincsnevem662@gmail.com>2022-12-10 19:05:38 +0100
commit1e858c874804444bc4b95b6e89eb96a0deb8473c (patch)
tree3151b498e19c6d6eed3d90827483eb270314f3da /src/utils
parentd963385cd9fd77f0a950c5b92be7774bbf76d661 (diff)
downloadchawan-1e858c874804444bc4b95b6e89eb96a0deb8473c.tar.gz
Add support for the encoding standard, fix parseLegacyColor
Also, fix a bug in the
Diffstat (limited to 'src/utils')
-rw-r--r--src/utils/twtstr.nim2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/utils/twtstr.nim b/src/utils/twtstr.nim
index 53d68798..1a38e6c5 100644
--- a/src/utils/twtstr.nim
+++ b/src/utils/twtstr.nim
@@ -140,7 +140,7 @@ func decValue*(c: char): int =
   return decCharMap[c]
 
 func isAscii*(r: Rune): bool =
-  return int(r) < 128
+  return int32(r) < 128
 
 const HexChars = "0123456789ABCDEF"
 func toHex*(c: char): string =