summaryrefslogtreecommitdiffhomepage
path: root/src/vm.c
diff options
context:
space:
mode:
authorYukihiro "Matz" Matsumoto <[email protected]>2013-03-22 19:11:51 -0700
committerYukihiro "Matz" Matsumoto <[email protected]>2013-03-22 19:11:51 -0700
commitacab35a2a54e00e197b7372e940b83235480179d (patch)
treeb8ec207c86e6f9e270c04799c5cb7d59354acac6 /src/vm.c
parent04d9c5ea6bfbdaf425526cf3556704f6b9fd0971 (diff)
parentf4b943771881b01b40b34ca38ccdd62bb5eaaa66 (diff)
downloadmruby-acab35a2a54e00e197b7372e940b83235480179d.tar.gz
mruby-acab35a2a54e00e197b7372e940b83235480179d.zip
Merge pull request #1039 from crimsonwoods/fix_the_type_of_opcode
Fix the type of value that is returned by bit shift expression.
Diffstat (limited to 'src/vm.c')
-rw-r--r--src/vm.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/vm.c b/src/vm.c
index 393ce3e0d..c18054a9c 100644
--- a/src/vm.c
+++ b/src/vm.c
@@ -1126,7 +1126,7 @@ mrb_run(mrb_state *mrb, struct RProc *proc, mrb_value self)
CASE(OP_ENTER) {
/* Ax arg setup according to flags (24=5:5:1:5:5:1:1) */
/* number of optional arguments times OP_JMP should follow */
- int ax = GETARG_Ax(i);
+ int32_t ax = GETARG_Ax(i);
int m1 = (ax>>18)&0x1f;
int o = (ax>>13)&0x1f;
int r = (ax>>12)&0x1;