Explorar o código

Update vm.cpp

blueloveTH hai 1 ano
pai
achega
51611da6d9
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      src/vm.cpp

+ 1 - 1
src/vm.cpp

@@ -217,7 +217,7 @@ namespace pkpy{
     }
 
     const PyTypeInfo* VM::_inst_type_info(PyObject* obj){
-        if(is_int(obj)) return &_all_types[tp_int];
+        if(is_small_int(obj)) return &_all_types[tp_int];
         return &_all_types[obj->type];
     }