Browse Source

FFI: Fix __index/__newindex metamethod resolution for ctypes.

Mike Pall 11 năm trước cách đây
mục cha
commit
66515a054c
1 tập tin đã thay đổi với 1 bổ sung0 xóa
  1. 1 0
      src/lib_ffi.c

+ 1 - 0
src/lib_ffi.c

@@ -136,6 +136,7 @@ static int ffi_index_meta(lua_State *L, CTState *cts, CType *ct, MMS mm)
 	return 0;
       }
     }
+    copyTV(L, base, L->top);
     tv = L->top-1;
   }
   return lj_meta_tailcall(L, tv);