codegen.c: get_int_operand to retrieve negative values correctly.

This commit is contained in:
Yukihiro "Matz" Matsumoto
2021-12-01 14:26:22 +09:00
parent 7a31a1743a
commit 2e2f81a443
+1 -1
View File
@@ -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: