瀏覽代碼

fix a bug

blueloveTH 3 年之前
父節點
當前提交
1649a4e822
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/cffi.h

+ 1 - 1
src/cffi.h

@@ -13,7 +13,7 @@ namespace pkpy {
     }                                                                       \
     static void _check_type(VM* vm, PyObject* val){                          \
         if(!vm->isinstance(val, T::_type(vm))){                             \
-            vm->TypeError("expected '" #mod "." #name "', got " + OBJ_NAME(val).escape());  \
+            vm->TypeError("expected '" #mod "." #name "', got " + OBJ_NAME(vm->_t(val)).escape());  \
         }                                                                   \
     }                                                                       \
     static PyObject* register_class(VM* vm, PyObject* mod) {                \