diff options
Diffstat (limited to '')
-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 1df6c70c..9a317891 100644 --- a/src/lj_crecord.c +++ b/src/lj_crecord.c | |||
@@ -372,7 +372,7 @@ void LJ_FASTCALL recff_cdata_index(jit_State *J, RecordFFData *rd) | |||
372 | idx = emitir(IRT(IR_TOINT, IRT_INTP), idx, IRTOINT_ANY); | 372 | idx = emitir(IRT(IR_TOINT, IRT_INTP), idx, IRTOINT_ANY); |
373 | #endif | 373 | #endif |
374 | if (ctype_ispointer(ct->info)) { | 374 | if (ctype_ispointer(ct->info)) { |
375 | ptrdiff_t sz = (ptrdiff_t)lj_ctype_size(cts, (sid = ctype_cid(ct->info))); | 375 | CTSize sz = lj_ctype_size(cts, (sid = ctype_cid(ct->info))); |
376 | idx = crec_reassoc_ofs(J, idx, &ofs, sz); | 376 | idx = crec_reassoc_ofs(J, idx, &ofs, sz); |
377 | idx = emitir(IRT(IR_MUL, IRT_INTP), idx, lj_ir_kintp(J, sz)); | 377 | idx = emitir(IRT(IR_MUL, IRT_INTP), idx, lj_ir_kintp(J, sz)); |
378 | ptr = emitir(IRT(IR_ADD, IRT_PTR), idx, ptr); | 378 | ptr = emitir(IRT(IR_ADD, IRT_PTR), idx, ptr); |