diff --git a/src/expr.cpp b/src/expr.cpp index 5b13a7a3..6b5dd112 100644 --- a/src/expr.cpp +++ b/src/expr.cpp @@ -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); }