]> git.ipfire.org Git - thirdparty/LuaJIT.git/commitdiff
FFI: Need to treat strlen() as a load.
authorMike Pall <mike>
Sun, 27 Nov 2011 17:22:48 +0000 (18:22 +0100)
committerMike Pall <mike>
Sun, 27 Nov 2011 17:22:48 +0000 (18:22 +0100)
src/lj_ircall.h

index 5397046e31b71c8a223e01b30a1ccaf7130e849a..1a9599afe4b99d8c9e6677d7403bd109ca40f457 100644 (file)
@@ -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) \