aboutsummaryrefslogtreecommitdiff
path: root/src/lib_ffi.c
diff options
context:
space:
mode:
authorMike Pall <mike>2018-01-29 12:47:08 +0100
committerMike Pall <mike>2018-01-29 12:47:08 +0100
commitb03a56f28ec360bbcf43091afd0607890a4a33c7 (patch)
treee8ca6face0a82f440512ad01067c17390fdf5ae8 /src/lib_ffi.c
parentc88602f080dcafea6ba222a2f7cc1ea0e41ef3cc (diff)
downloadluajit-b03a56f28ec360bbcf43091afd0607890a4a33c7.tar.gz
luajit-b03a56f28ec360bbcf43091afd0607890a4a33c7.tar.bz2
luajit-b03a56f28ec360bbcf43091afd0607890a4a33c7.zip
FFI: Don't assert on #1LL (5.2 compatibility mode only).
Reported by Denis Golovan.
Diffstat (limited to 'src/lib_ffi.c')
-rw-r--r--src/lib_ffi.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib_ffi.c b/src/lib_ffi.c
index f2f2ede4..83483d95 100644
--- a/src/lib_ffi.c
+++ b/src/lib_ffi.c
@@ -193,7 +193,7 @@ LJLIB_CF(ffi_meta___eq) LJLIB_REC(cdata_arith MM_eq)
193 193
194LJLIB_CF(ffi_meta___len) LJLIB_REC(cdata_arith MM_len) 194LJLIB_CF(ffi_meta___len) LJLIB_REC(cdata_arith MM_len)
195{ 195{
196 return ffi_arith(L); 196 return lj_carith_len(L);
197} 197}
198 198
199LJLIB_CF(ffi_meta___lt) LJLIB_REC(cdata_arith MM_lt) 199LJLIB_CF(ffi_meta___lt) LJLIB_REC(cdata_arith MM_lt)