Nicolas Cannasse 11 years ago
parent
commit
1808f1f6a9
1 changed files with 1 additions and 1 deletions
  1. 1 1
      hxsl/AgalOut.hx

+ 1 - 1
hxsl/AgalOut.hx

@@ -256,7 +256,7 @@ class AgalOut {
 			case OpSub: return std(OSub);
 			case OpDiv: return std(ODiv);
 			case OpMod:
-				var tmp = allocReg(e.t);
+				var tmp = allocReg(e2.t);
 				op(OMov(tmp, expr(e2)));
 				var r = allocReg(e.t);
 				op(ODiv(r, expr(e1), tmp));