소스 검색

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) {                \