summaryrefslogtreecommitdiffhomepage
path: root/src/vm.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/vm.c')
-rw-r--r--src/vm.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/vm.c b/src/vm.c
index 14c6a0b69..c87fa9dc6 100644
--- a/src/vm.c
+++ b/src/vm.c
@@ -1069,7 +1069,7 @@ RETRY_TRY_BLOCK:
NEXT;
}
-
+
CASE(OP_LOADL16, BS) {
goto op_loadl;
}
@@ -1135,7 +1135,7 @@ RETRY_TRY_BLOCK:
}
CASE(OP_LOADI32, BSS) {
- SET_INT_VALUE(mrb, regs[a], ((mrb_int)b<<16)+c);
+ SET_INT_VALUE(mrb, regs[a], (mrb_int)(((uint32_t)b<<16)+c));
NEXT;
}