about summary refs log tree commit diff stats
path: root/src/css
diff options
context:
space:
mode:
authorbptato <nincsnevem662@gmail.com>2024-02-27 18:45:17 +0100
committerbptato <nincsnevem662@gmail.com>2024-02-27 18:45:17 +0100
commit0f2c08006a8787fc1a8a67ecf125fdffadd245ff (patch)
tree77db5c898bf8f55835466efa175342fa42a32f01 /src/css
parent5c978a3441cec24f2ffbd11b6e6bb3e2f429aadf (diff)
downloadchawan-0f2c08006a8787fc1a8a67ecf125fdffadd245ff.tar.gz
misc refactorings
* rename buffer enums
* fix isAscii for char 0x80
* remove dead code from URL
Diffstat (limited to 'src/css')
-rw-r--r--src/css/cssparser.nim4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/css/cssparser.nim b/src/css/cssparser.nim
index 88b41eab..57f46015 100644
--- a/src/css/cssparser.nim
+++ b/src/css/cssparser.nim
@@ -162,8 +162,8 @@ proc consume(state: var CSSTokenizerState): char =
 proc consumeRChar(state: var CSSTokenizerState): char =
   var r: Rune
   fastRuneAt(state.buf, state.at, r)
-  if r.isAscii():
-    return cast[char](r)
+  if int32(r) < 0x80:
+    return char(r)
   return char(128)
 
 proc reconsume(state: var CSSTokenizerState) =