From 51611da6d9d1475f4dae59fa5526e16698034508 Mon Sep 17 00:00:00 2001 From: blueloveTH Date: Tue, 30 Apr 2024 20:34:21 +0800 Subject: [PATCH] Update vm.cpp --- src/vm.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/vm.cpp b/src/vm.cpp index fcb38dec..28a59a66 100644 --- a/src/vm.cpp +++ b/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]; }