]> git.sur5r.net Git - cc65/commitdiff
Fix base 10 bug (ca65 allows 'a' or 'A' in base10 value) 181/head
authorJT <jeremiah.turner@gmail.com>
Sun, 19 Jul 2015 22:56:42 +0000 (18:56 -0400)
committerJT <jeremiah.turner@gmail.com>
Sun, 19 Jul 2015 22:56:42 +0000 (18:56 -0400)
src/ca65/scanner.c

index 97ed2c9d9014f0e440cc39ac8ecc23bd3507b4b1..20053e7e6a332f0939d731226210c1c4442bfe44 100644 (file)
@@ -1012,7 +1012,7 @@ Again:
                 break;
             }
             DVal = DigitVal (Buf[I]);
-            if (DVal > Base) {
+            if (DVal >= Base) {
                 Error ("Invalid digits in number");
                 CurTok.IVal = 0;
                 break;