diff options
Diffstat (limited to '')
-rw-r--r-- | src/lj_snap.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/lj_snap.c b/src/lj_snap.c index 9858c110..0c317b52 100644 --- a/src/lj_snap.c +++ b/src/lj_snap.c | |||
@@ -873,7 +873,8 @@ const BCIns *lj_snap_restore(jit_State *J, void *exptr) | |||
873 | lua_State *L = J->L; | 873 | lua_State *L = J->L; |
874 | 874 | ||
875 | /* Set interpreter PC to the next PC to get correct error messages. */ | 875 | /* Set interpreter PC to the next PC to get correct error messages. */ |
876 | setcframe_pc(cframe_raw(L->cframe), pc+1); | 876 | setcframe_pc(L->cframe, pc+1); |
877 | setcframe_pc(cframe_raw(cframe_prev(L->cframe)), pc); | ||
877 | 878 | ||
878 | /* Make sure the stack is big enough for the slots from the snapshot. */ | 879 | /* Make sure the stack is big enough for the slots from the snapshot. */ |
879 | if (LJ_UNLIKELY(L->base + snap->topslot >= tvref(L->maxstack))) { | 880 | if (LJ_UNLIKELY(L->base + snap->topslot >= tvref(L->maxstack))) { |