mirror of
https://github.com/gbdev/rgbds.git
synced 2025-11-20 18:22:07 +00:00
@@ -100,7 +100,13 @@ static int32_t ascii2bin(char *s)
|
||||
break;
|
||||
}
|
||||
|
||||
if (radix == 4) {
|
||||
if (*s == '\0') {
|
||||
/*
|
||||
* There are no digits after the radix prefix
|
||||
* (or the string is empty, which shouldn't happen).
|
||||
*/
|
||||
yyerror("Invalid integer constant");
|
||||
} else if (radix == 4) {
|
||||
int32_t c;
|
||||
|
||||
while (*s != '\0') {
|
||||
|
||||
@@ -1,2 +1,4 @@
|
||||
ERROR: divzero-section-bank.asm(1):
|
||||
Invalid integer constant
|
||||
ERROR: divzero-section-bank.asm(1):
|
||||
Division by zero
|
||||
|
||||
Reference in New Issue
Block a user