diff options
author | Mike Pall <mike> | 2021-09-20 14:34:47 +0200 |
---|---|---|
committer | Mike Pall <mike> | 2021-09-20 14:34:47 +0200 |
commit | a622e2eb559c823d90c7af85935ca63706e4593d (patch) | |
tree | 5d9e248aec8e65f6e91d48568094639378d56d1e | |
parent | 3a654999c6f00de4cb9e61232d23579442e544a0 (diff) | |
download | luajit-a622e2eb559c823d90c7af85935ca63706e4593d.tar.gz luajit-a622e2eb559c823d90c7af85935ca63706e4593d.tar.bz2 luajit-a622e2eb559c823d90c7af85935ca63706e4593d.zip |
FFI: Fix missing cts->L initialization in argv2ctype().
-rw-r--r-- | src/lj_crecord.c | 2 |
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) | |||
76 | /* Specialize to the string containing the C type declaration. */ | 76 | /* Specialize to the string containing the C type declaration. */ |
77 | emitir(IRTG(IR_EQ, IRT_STR), tr, lj_ir_kstr(J, s)); | 77 | emitir(IRTG(IR_EQ, IRT_STR), tr, lj_ir_kstr(J, s)); |
78 | cp.L = J->L; | 78 | cp.L = J->L; |
79 | cp.cts = ctype_ctsG(J2G(J)); | 79 | cp.cts = ctype_cts(J->L); |
80 | oldtop = cp.cts->top; | 80 | oldtop = cp.cts->top; |
81 | cp.srcname = strdata(s); | 81 | cp.srcname = strdata(s); |
82 | cp.p = strdata(s); | 82 | cp.p = strdata(s); |