From 3b76266c6adb7d74e3e0631fef510d9a418e966b Mon Sep 17 00:00:00 2001 From: blueloveTH Date: Thu, 26 Dec 2024 14:23:23 +0800 Subject: [PATCH] ... --- src/compiler/compiler.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/compiler/compiler.c b/src/compiler/compiler.c index 71bf9318..2b3fea01 100644 --- a/src/compiler/compiler.c +++ b/src/compiler/compiler.c @@ -1189,7 +1189,7 @@ static void Ctx__revert_last_emit_(Ctx* self) { } static int Ctx__emit_int(Ctx* self, int64_t value, int line) { - if((int16_t)value == value) { + if(INT16_MIN <= value && value <= INT16_MAX) { return Ctx__emit_(self, OP_LOAD_SMALL_INT, (uint16_t)value, line); } else { py_TValue tmp;