Browse Source

Fix display of branches to exit stubs in 32 bit disassembly.

Mike Pall 14 years ago
parent
commit
ba20871f0f
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/lib_jit.c

+ 1 - 1
src/lib_jit.c

@@ -371,7 +371,7 @@ LJLIB_CF(jit_util_traceexitstub)
   ExitNo exitno = (ExitNo)lj_lib_checkint(L, 1);
   jit_State *J = L2J(L);
   if (exitno < EXITSTUBS_PER_GROUP*LJ_MAX_EXITSTUBGR) {
-    setnumV(L->top-1, cast_num((uintptr_t)exitstub_addr(J, exitno)));
+    setnumV(L->top-1, cast_num((intptr_t)exitstub_addr(J, exitno)));
     return 1;
   }
   return 0;