This commit is contained in:
blueloveTH 2024-03-17 17:58:16 +08:00
parent 3ebc19bf7f
commit 92f9b93245

View File

@ -63,7 +63,7 @@ namespace pkpy{
int CodeEmitContext::emit_int(i64 value, int line){
if(value >= -5 && value <= 16){
uint8_t op = OP_LOAD_INT_NEG_5 + (uint8_t)value + 5;
return emit_((Opcode)op, (uint16_t)value, line);
return emit_((Opcode)op, BC_NOARG, line);
}else{
return emit_(OP_LOAD_CONST, add_const(VAR(value)), line);
}