mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* 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
This commit is contained in:
parent
7cdc73235a
commit
1c6ca1eec5
3 changed files with 6 additions and 3 deletions
|
@ -1,7 +1,10 @@
|
|||
Thu Mar 12 17:56:29 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
||||
Thu Mar 12 18:02:05 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
||||
|
||||
* st.c: use st_index_t for indexes instead of int.
|
||||
|
||||
* vm.c (rb_vm_get_sourceline), vm_insnhelper.c (vm_throw): use
|
||||
rb_num_t.
|
||||
|
||||
Thu Mar 12 09:30:54 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
||||
|
||||
* configure.in (RUBY_CHECK_SIZEOF): if same size type is found, no
|
||||
|
|
2
vm.c
2
vm.c
|
@ -672,7 +672,7 @@ rb_vm_get_sourceline(const rb_control_frame_t *cfp)
|
|||
const rb_iseq_t *iseq = cfp->iseq;
|
||||
|
||||
if (RUBY_VM_NORMAL_ISEQ_P(iseq)) {
|
||||
int i;
|
||||
rb_num_t i;
|
||||
int pos = cfp->pc - cfp->iseq->iseq_encoded;
|
||||
|
||||
for (i = 0; i < iseq->insn_info_size; i++) {
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Add table
Reference in a new issue