shithub: rgbds

Download patch

ref: 483d94f88bccaa9ec3b78bb291f997164ec18c1e
parent: 9b4d16b0d89c5364a5b60822f6fbd1d660959d04
author: Anthony J. Bentley <[email protected]>
date: Tue Jan 27 00:42:51 EST 2015

rgbasm: Fixed a dumb typo; pointed out by stag019.

--- a/src/asm/asmy.y
+++ b/src/asm/asmy.y
@@ -1000,7 +1000,7 @@
 				|	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; }