2
0
Эх сурвалжийг харах

FFI: Need to treat strlen() as a load.

Mike Pall 14 жил өмнө
parent
commit
ff7e9bc464
1 өөрчлөгдсөн 1 нэмэгдсэн , 1 устгасан
  1. 1 1
      src/lj_ircall.h

+ 1 - 1
src/lj_ircall.h

@@ -168,7 +168,7 @@ typedef struct CCallInfo {
   _(FFI,	lj_carith_powi64,	ARG2_64,   N, I64, CCI_NOFPRCLOBBER) \
   _(FFI,	lj_carith_powu64,	ARG2_64,   N, U64, CCI_NOFPRCLOBBER) \
   _(FFI,	lj_cdata_setfin,	2,        FN, P32, CCI_L) \
-  _(FFI,	strlen,			1,         N, INTP, 0) \
+  _(FFI,	strlen,			1,         L, INTP, 0) \
   _(FFI,	memcpy,			3,         S, PTR, 0) \
   _(FFI,	memset,			3,         S, PTR, 0) \
   _(FFI,	lj_vm_errno,		0,         S, INT, CCI_NOFPRCLOBBER) \