codegen.c: `get_int_operand` to retrieve negative values correctly.

parent 7a31a174
......@@ -729,7 +729,7 @@ get_int_operand(codegen_scope *s, struct mrb_insn_data *data, mrb_int *n)
case OP_LOADI:
case OP_LOADI16:
*n = data->b;
*n = (int16_t)data->b;
return TRUE;
case OP_LOADI32:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment