about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorbptato <nincsnevem662@gmail.com>2022-12-12 22:56:22 +0100
committerbptato <nincsnevem662@gmail.com>2022-12-12 22:56:43 +0100
commit7a3fb32bff44a581d6926bfaf5f070f8ef062338 (patch)
tree93fd77ca4191951fbd3653327ca123f94f2d7112
parent77512303946a27d4f9b9ffc30f0aeb6c31f59e1c (diff)
downloadchawan-7a3fb32bff44a581d6926bfaf5f070f8ef062338.tar.gz
cssparser: fix a parseAnB bug
Just a typo...
-rw-r--r--src/css/cssparser.nim2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/css/cssparser.nim b/src/css/cssparser.nim
index 0e1726e9..6f26629b 100644
--- a/src/css/cssparser.nim
+++ b/src/css/cssparser.nim
@@ -916,7 +916,7 @@ proc parseAnB*(state: var CSSParseState): Option[CSSAnB] =
         else: return none(CSSAnB)
         let tok3 = get_tok
         fail_non_signless_integer tok3, some((-1, 0))
-        return some((-1, sign * int(tok2.nvalue)))
+        return some((-1, sign * int(tok3.nvalue)))
       else:
         fail_non_integer tok2, some((-1, 0))
         return some((-1, int(tok2.nvalue)))