summaryrefslogtreecommitdiff
path: root/vm_insnhelper.c
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-03-12 09:02:06 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-03-12 09:02:06 +0000
commit1c6ca1eec5c35e1665273b891ecc05e2daf0e063 (patch)
tree872758cbe2204a0d7c976897f1eeba5aa6d8aa50 /vm_insnhelper.c
parent7cdc73235aee44599b99a89369edbaa61f4204bc (diff)
* vm.c (rb_vm_get_sourceline), vm_insnhelper.c (vm_throw): use
rb_num_t. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@22912 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'vm_insnhelper.c')
-rw-r--r--vm_insnhelper.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/vm_insnhelper.c b/vm_insnhelper.c
index ce1f0984d0..5293af316f 100644
--- a/vm_insnhelper.c
+++ b/vm_insnhelper.c
@@ -1260,7 +1260,6 @@ vm_throw(rb_thread_t *th, rb_control_frame_t *reg_cfp,
if (state != 0) {
VALUE *pt = 0;
- int i;
if (flag != 0) {
pt = (void *) 1;
}
@@ -1329,6 +1328,7 @@ vm_throw(rb_thread_t *th, rb_control_frame_t *reg_cfp,
}
}
else if (state == TAG_RETRY) {
+ rb_num_t i;
pt = GC_GUARDED_PTR_REF((VALUE *) * GET_DFP());
for (i = 0; i < level; i++) {
pt = GC_GUARDED_PTR_REF((VALUE *) * pt);