Browse Source

Update vm.cpp

blueloveTH 1 năm trước cách đây
mục cha
commit
51611da6d9
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  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];
     }
     }