diff options
author | Mike Pall <mike> | 2014-01-19 13:09:20 +0100 |
---|---|---|
committer | Mike Pall <mike> | 2014-01-19 13:09:20 +0100 |
commit | 45c067ddddaae1bedc3e07b6f5af65aea3beceac (patch) | |
tree | 8bf583a34dfbe598b9891da00aa59a78d46e0d8f | |
parent | ef59e5482055ed4477144518fc79a993288e855b (diff) | |
download | luajit2-45c067ddddaae1bedc3e07b6f5af65aea3beceac.tar.gz |
FFI: Fix cts->L for cdata unsinking in snapshot restore.
-rw-r--r-- | src/lj_snap.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lj_snap.c b/src/lj_snap.c index 4d211898..1c978c26 100644 --- a/src/lj_snap.c +++ b/src/lj_snap.c @@ -708,7 +708,7 @@ static void snap_unsink(jit_State *J, GCtrace *T, ExitState *ex, ir->o == IR_CNEW || ir->o == IR_CNEWI); #if LJ_HASFFI if (ir->o == IR_CNEW || ir->o == IR_CNEWI) { - CTState *cts = ctype_ctsG(J2G(J)); + CTState *cts = ctype_cts(J->L); CTypeID id = (CTypeID)T->ir[ir->op1].i; CTSize sz = lj_ctype_size(cts, id); GCcdata *cd = lj_cdata_new(cts, id, sz); |