diff options
Diffstat (limited to 'src/lj_snap.c')
-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 6fda08ba..27f9c8e5 100644 --- a/src/lj_snap.c +++ b/src/lj_snap.c | |||
@@ -957,7 +957,8 @@ const BCIns *lj_snap_restore(jit_State *J, void *exptr) | |||
957 | lua_State *L = J->L; | 957 | lua_State *L = J->L; |
958 | 958 | ||
959 | /* Set interpreter PC to the next PC to get correct error messages. */ | 959 | /* Set interpreter PC to the next PC to get correct error messages. */ |
960 | setcframe_pc(cframe_raw(L->cframe), pc+1); | 960 | setcframe_pc(L->cframe, pc+1); |
961 | setcframe_pc(cframe_raw(cframe_prev(L->cframe)), pc); | ||
961 | 962 | ||
962 | /* Make sure the stack is big enough for the slots from the snapshot. */ | 963 | /* Make sure the stack is big enough for the slots from the snapshot. */ |
963 | if (LJ_UNLIKELY(L->base + snap->topslot >= tvref(L->maxstack))) { | 964 | if (LJ_UNLIKELY(L->base + snap->topslot >= tvref(L->maxstack))) { |