diff options
author | ko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2012-10-17 07:24:52 +0000 |
---|---|---|
committer | ko1 <ko1@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2012-10-17 07:24:52 +0000 |
commit | 000ff5b3ce9ff045a30e146aede5917d6fa4f0ff (patch) | |
tree | 7935d6187a3bcbfedaeda2215372b667116e1e53 /vm_insnhelper.c | |
parent | 9a82db49eb5d464d6d0adc3c7c3ebf4574d5d025 (diff) | |
download | ruby-000ff5b3ce9ff045a30e146aede5917d6fa4f0ff.tar.gz |
* vm_insnhelper.c (vm_getivar): fix to use `aux.index' instead of
`aux.opt_pc'.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37244 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'vm_insnhelper.c')
-rw-r--r-- | vm_insnhelper.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/vm_insnhelper.c b/vm_insnhelper.c index 967ec1b4cb..6296748a6e 100644 --- a/vm_insnhelper.c +++ b/vm_insnhelper.c @@ -502,7 +502,7 @@ vm_getivar(VALUE obj, ID id, IC ic, rb_call_info_t *ci, int is_attr) if (LIKELY((!is_attr && (ic->ic_class == klass && ic->ic_vmstat == GET_VM_STATE_VERSION())) || (is_attr && ci->aux.index > 0))) { - long index = !is_attr ? ic->ic_value.index : ci->aux.opt_pc - 1; + long index = !is_attr ? ic->ic_value.index : ci->aux.index - 1; long len = ROBJECT_NUMIV(obj); VALUE *ptr = ROBJECT_IVPTR(obj); @@ -527,7 +527,7 @@ vm_getivar(VALUE obj, ID id, IC ic, rb_call_info_t *ci, int is_attr) ic->ic_vmstat = GET_VM_STATE_VERSION(); } else { /* call_info */ - ci->aux.opt_pc = index + 1; + ci->aux.index = index + 1; } } } |