From b79687da2b85d4759651ec8fbb024ee96b4e77ca Mon Sep 17 00:00:00 2001 From: JT Date: Sun, 19 Jul 2015 18:56:42 -0400 Subject: [PATCH] Fix base 10 bug (ca65 allows 'a' or 'A' in base10 value) --- src/ca65/scanner.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- 2.39.5