From 483d94f88bccaa9ec3b78bb291f997164ec18c1e Mon Sep 17 00:00:00 2001 From: "Anthony J. Bentley" Date: Tue, 27 Jan 2015 05:42:51 -0700 Subject: [PATCH] rgbasm: Fixed a dumb typo; pointed out by stag019. --- src/asm/asmy.y | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/asm/asmy.y b/src/asm/asmy.y index e34d0047..b2071071 100644 --- a/src/asm/asmy.y +++ b/src/asm/asmy.y @@ -1000,7 +1000,7 @@ const : T_ID { $$ = sym_GetConstantValue($1); } | const T_OP_MOD const { if ($3 == 0) fatalerror("division by zero"); - $$ = $1 % 3; + $$ = $1 % $3; } | T_OP_ADD const %prec NEG { $$ = +$2; } | T_OP_SUB const %prec NEG { $$ = -$2; }