summaryrefslogtreecommitdiff
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)
downloadluajit2-b03a56f28ec360bbcf43091afd0607890a4a33c7.tar.gz
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)
LJLIB_CF(ffi_meta___len) LJLIB_REC(cdata_arith MM_len)
{
- return ffi_arith(L);
+ return lj_carith_len(L);
}
LJLIB_CF(ffi_meta___lt) LJLIB_REC(cdata_arith MM_lt)