summaryrefslogtreecommitdiff
path: root/compile.c
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2014-09-10 08:05:19 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2014-09-10 08:05:19 +0000
commit826341c7180cffe56fb1fb390360d0a95a21d73c (patch)
tree686ebb0dbb2d7965715db0295be9ad0745f2d455 /compile.c
parentddf6eb40c725434fec5341e73777a0d59e135287 (diff)
compile.c: remove useless cast
* compile.c (rb_iseq_original_iseq): remove useless cast to fix compile error. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47513 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'compile.c')
-rw-r--r--compile.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/compile.c b/compile.c
index fbe639e..9e3fac7 100644
--- a/compile.c
+++ b/compile.c
@@ -609,7 +609,7 @@ rb_iseq_original_iseq(rb_iseq_t *iseq) /* cold path */
for (i = 0; i < iseq->iseq_size; /* */ ) {
const void *addr = (const void *)iseq->iseq[i];
- int insn = (VALUE)rb_vm_addr2insn(addr);
+ int insn = rb_vm_addr2insn(addr);
iseq->iseq[i] = insn;
i += insn_len(insn);