Răsfoiți Sursa

Update vm.cpp

blueloveTH 2 ani în urmă
părinte
comite
51611da6d9
1 a modificat fișierele cu 1 adăugiri și 1 ștergeri
  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){
     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];
         return &_all_types[obj->type];
     }
     }