aboutsummaryrefslogtreecommitdiff
path: root/src/lib_ffi.c
diff options
context:
space:
mode:
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);