]> git.ipfire.org Git - thirdparty/LuaJIT.git/commitdiff
FFI: Fix missing cts->L initialization in argv2ctype().
authorMike Pall <mike>
Mon, 20 Sep 2021 12:34:47 +0000 (14:34 +0200)
committerMike Pall <mike>
Mon, 20 Sep 2021 12:34:47 +0000 (14:34 +0200)
src/lj_crecord.c

index 703050692d679cbbad5be52403abc767ab1bd5dd..91a815191258ec7b521d4946f9a117df8c26de90 100644 (file)
@@ -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);