summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Pall <mike>2021-09-20 14:34:47 +0200
committerMike Pall <mike>2021-09-20 14:34:47 +0200
commita622e2eb559c823d90c7af85935ca63706e4593d (patch)
tree5d9e248aec8e65f6e91d48568094639378d56d1e
parent3a654999c6f00de4cb9e61232d23579442e544a0 (diff)
downloadluajit2-a622e2eb559c823d90c7af85935ca63706e4593d.tar.gz
FFI: Fix missing cts->L initialization in argv2ctype().
-rw-r--r--src/lj_crecord.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lj_crecord.c b/src/lj_crecord.c
index 70305069..91a81519 100644
--- a/src/lj_crecord.c
+++ b/src/lj_crecord.c
@@ -76,7 +76,7 @@ static CTypeID argv2ctype(jit_State *J, TRef tr, cTValue *o)
/* Specialize to the string containing the C type declaration. */
emitir(IRTG(IR_EQ, IRT_STR), tr, lj_ir_kstr(J, s));
cp.L = J->L;
- cp.cts = ctype_ctsG(J2G(J));
+ cp.cts = ctype_cts(J->L);
oldtop = cp.cts->top;
cp.srcname = strdata(s);
cp.p = strdata(s);