diff options
author | Mike Pall <mike> | 2020-05-08 13:50:41 +0200 |
---|---|---|
committer | Mike Pall <mike> | 2020-05-08 13:50:41 +0200 |
commit | cc4bbec483d3f3250b519ccb7cc22f1a8e6fe6f0 (patch) | |
tree | d0194b811af58504b68e91f673e6e27852e82b5d /src/lib_ffi.c | |
parent | 179cf2eb84fef2b9a524469c3c8cc49363b8fb10 (diff) | |
download | luajit-cc4bbec483d3f3250b519ccb7cc22f1a8e6fe6f0.tar.gz luajit-cc4bbec483d3f3250b519ccb7cc22f1a8e6fe6f0.tar.bz2 luajit-cc4bbec483d3f3250b519ccb7cc22f1a8e6fe6f0.zip |
FFI: Always fall back to metamethods for cdata length/concat.
Thanks to Egor Skriptunoff.
Diffstat (limited to 'src/lib_ffi.c')
-rw-r--r-- | src/lib_ffi.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib_ffi.c b/src/lib_ffi.c index 5851eea5..c7a26f56 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 | ||
194 | LJLIB_CF(ffi_meta___len) LJLIB_REC(cdata_arith MM_len) | 194 | LJLIB_CF(ffi_meta___len) LJLIB_REC(cdata_arith MM_len) |
195 | { | 195 | { |
196 | return lj_carith_len(L); | 196 | return ffi_arith(L); |
197 | } | 197 | } |
198 | 198 | ||
199 | LJLIB_CF(ffi_meta___lt) LJLIB_REC(cdata_arith MM_lt) | 199 | LJLIB_CF(ffi_meta___lt) LJLIB_REC(cdata_arith MM_lt) |