aboutsummaryrefslogtreecommitdiff
path: root/src/lj_crecord.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/lj_crecord.c')
-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 5e058a6f..d689b81b 100644
--- a/src/lj_crecord.c
+++ b/src/lj_crecord.c
@@ -970,7 +970,7 @@ void LJ_FASTCALL recff_ffi_string(jit_State *J, RecordFFData *rd)
970 tr = crec_ct_tv(J, ctype_get(cts, CTID_P_CCHAR), 0, tr, &rd->argv[0]); 970 tr = crec_ct_tv(J, ctype_get(cts, CTID_P_CCHAR), 0, tr, &rd->argv[0]);
971 trlen = lj_ir_call(J, IRCALL_strlen, tr); 971 trlen = lj_ir_call(J, IRCALL_strlen, tr);
972 } 972 }
973 J->base[0] = emitir(IRT(IR_SNEW, IRT_STR), tr, trlen); 973 J->base[0] = emitir(IRT(IR_XSNEW, IRT_STR), tr, trlen);
974 } /* else: interpreter will throw. */ 974 } /* else: interpreter will throw. */
975} 975}
976 976