mirror of
https://github.com/gbdev/rgbds.git
synced 2025-11-20 10:12:06 +00:00
rgbasm: Fixed a dumb typo; pointed out by stag019.
This commit is contained in:
@@ -1000,7 +1000,7 @@ const : T_ID { $$ = sym_GetConstantValue($1); }
|
|||||||
| const T_OP_MOD const {
|
| const T_OP_MOD const {
|
||||||
if ($3 == 0)
|
if ($3 == 0)
|
||||||
fatalerror("division by zero");
|
fatalerror("division by zero");
|
||||||
$$ = $1 % 3;
|
$$ = $1 % $3;
|
||||||
}
|
}
|
||||||
| T_OP_ADD const %prec NEG { $$ = +$2; }
|
| T_OP_ADD const %prec NEG { $$ = +$2; }
|
||||||
| T_OP_SUB const %prec NEG { $$ = -$2; }
|
| T_OP_SUB const %prec NEG { $$ = -$2; }
|
||||||
|
|||||||
Reference in New Issue
Block a user