Ver código fonte

LJ_GC64: Fix BC_CALLM snapshot handling.

Mike Pall 8 anos atrás
pai
commit
024ade796f
1 arquivos alterados com 1 adições e 1 exclusões
  1. 1 1
      src/lj_trace.c

+ 1 - 1
src/lj_trace.c

@@ -894,7 +894,7 @@ int LJ_FASTCALL lj_trace_exit(jit_State *J, void *exptr)
   ERRNO_RESTORE
   ERRNO_RESTORE
   switch (bc_op(*pc)) {
   switch (bc_op(*pc)) {
   case BC_CALLM: case BC_CALLMT:
   case BC_CALLM: case BC_CALLMT:
-    return (int)((BCReg)(L->top - L->base) - bc_a(*pc) - bc_c(*pc) + LJ_FR2);
+    return (int)((BCReg)(L->top - L->base) - bc_a(*pc) - bc_c(*pc) - LJ_FR2);
   case BC_RETM:
   case BC_RETM:
     return (int)((BCReg)(L->top - L->base) + 1 - bc_a(*pc) - bc_d(*pc));
     return (int)((BCReg)(L->top - L->base) + 1 - bc_a(*pc) - bc_d(*pc));
   case BC_TSETM:
   case BC_TSETM: