From: JT Date: Sun, 19 Jul 2015 22:56:42 +0000 (-0400) Subject: Fix base 10 bug (ca65 allows 'a' or 'A' in base10 value) X-Git-Tag: V2.16~246^2 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=refs%2Fpull%2F181%2Fhead;p=cc65 Fix base 10 bug (ca65 allows 'a' or 'A' in base10 value) --- diff --git a/src/ca65/scanner.c b/src/ca65/scanner.c index 97ed2c9d9..20053e7e6 100644 --- a/src/ca65/scanner.c +++ b/src/ca65/scanner.c @@ -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;