summaryrefslogtreecommitdiff
path: root/compile.c
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2010-10-12 13:41:12 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2010-10-12 13:41:12 +0000
commitf5bcc56bcd3ca55131d5d766f953c5d52b2924cc (patch)
treee46646a2caa943a0a047673796157393de8a88c1 /compile.c
parent4fe1e7c69b3767737ac4936d7634f9dd8d7a61dd (diff)
* compile.c (iseq_compile_each): fix truncating cast.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@29458 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'compile.c')
-rw-r--r--compile.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/compile.c b/compile.c
index db4c32fca6..6501565c00 100644
--- a/compile.c
+++ b/compile.c
@@ -3700,7 +3700,7 @@ iseq_compile_each(rb_iseq_t *iseq, LINK_ANCHOR *ret, NODE * node, int poped)
ADD_INSN(ret, nd_line(node), dup);
}
ADD_INSN1(ret, nd_line(node), setglobal,
- (((long)node->nd_entry) | 1));
+ ((VALUE)node->nd_entry | 1));
break;
}
case NODE_IASGN:
@@ -4338,7 +4338,7 @@ iseq_compile_each(rb_iseq_t *iseq, LINK_ANCHOR *ret, NODE * node, int poped)
}
case NODE_GVAR:{
ADD_INSN1(ret, nd_line(node), getglobal,
- (((long)node->nd_entry) | 1));
+ ((VALUE)node->nd_entry | 1));
if (poped) {
ADD_INSN(ret, nd_line(node), pop);
}