blueloveTH 3 vuotta sitten
vanhempi
commit
1649a4e822
1 muutettua tiedostoa jossa 1 lisäystä ja 1 poistoa
  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) {                \