aboutsummaryrefslogtreecommitdiff
path: root/src/lib_ffi.c
diff options
context:
space:
mode:
authorMike Pall <mike>2023-07-08 19:43:08 +0200
committerMike Pall <mike>2023-07-08 19:43:08 +0200
commit69dadad6c31119be5b43e90ef34444001d374d4b (patch)
treeaea21b649da9a27e5a33a4352ca03f492f2c59b4 /src/lib_ffi.c
parent9493acc1a28f15b0ac4453e716f33436186c7acd (diff)
parent94ada59628dd6ce5d6d2dad1d35a68ad30127f53 (diff)
downloadluajit-69dadad6c31119be5b43e90ef34444001d374d4b.tar.gz
luajit-69dadad6c31119be5b43e90ef34444001d374d4b.tar.bz2
luajit-69dadad6c31119be5b43e90ef34444001d374d4b.zip
Merge branch 'master' into v2.1
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 2295cf15..1b1fa389 100644
--- a/src/lib_ffi.c
+++ b/src/lib_ffi.c
@@ -776,7 +776,7 @@ LJLIB_CF(ffi_metatype)
776 if (!(ctype_isstruct(ct->info) || ctype_iscomplex(ct->info) || 776 if (!(ctype_isstruct(ct->info) || ctype_iscomplex(ct->info) ||
777 ctype_isvector(ct->info))) 777 ctype_isvector(ct->info)))
778 lj_err_arg(L, 1, LJ_ERR_FFI_INVTYPE); 778 lj_err_arg(L, 1, LJ_ERR_FFI_INVTYPE);
779 tv = lj_tab_setinth(L, t, -(int32_t)id); 779 tv = lj_tab_setinth(L, t, -(int32_t)ctype_typeid(cts, ct));
780 if (!tvisnil(tv)) 780 if (!tvisnil(tv))
781 lj_err_caller(L, LJ_ERR_PROTMT); 781 lj_err_caller(L, LJ_ERR_PROTMT);
782 settabV(L, tv, mt); 782 settabV(L, tv, mt);