]> git.ipfire.org Git - thirdparty/LuaJIT.git/commitdiff
Fix code generation for Intel Atom in x64 mode.
authorMike Pall <mike>
Wed, 2 Mar 2011 23:49:45 +0000 (00:49 +0100)
committerMike Pall <mike>
Wed, 2 Mar 2011 23:49:45 +0000 (00:49 +0100)
src/lj_asm.c

index 17cbd848976d742238a7a7b88ef910b34dde50bd..f808dd4acf8a3a7f12f2a38a6efe4369adfd6a1d 100644 (file)
@@ -4394,7 +4394,7 @@ void lj_asm_trace(jit_State *J, GCtrace *T)
 
     if (!as->loopref) {
       /* Leave room for ESP adjustment: add esp, imm or lea esp, [esp+imm] */
-      as->mcp -= (as->flags & JIT_F_LEA_AGU) ? 7 : 6  + (LJ_64 ? 1 : 0);
+      as->mcp -= ((as->flags & JIT_F_LEA_AGU) ? 7 : 6)  + (LJ_64 ? 1 : 0);
       as->invmcp = NULL;
       asm_tail_link(as);
     }