diff options
author | mame <mame@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2010-11-16 13:32:30 +0000 |
---|---|---|
committer | mame <mame@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2010-11-16 13:32:30 +0000 |
commit | 6cba0f06639897912539f797cd1d5f502909dc1e (patch) | |
tree | 907b4955e6a7e7349507be45ba1597336dbe6daa /vm_insnhelper.c | |
parent | 3124b5fc3efcd1ffc74e6093f96156139dfa2061 (diff) | |
download | ruby-6cba0f06639897912539f797cd1d5f502909dc1e.tar.gz |
* vm_insnhelper.c (vm_throw): remove fear of undefined behavior :-)
Coverity Scan found this bug.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@29807 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'vm_insnhelper.c')
-rw-r--r-- | vm_insnhelper.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/vm_insnhelper.c b/vm_insnhelper.c index 73c9cd8570..18c22cb81d 100644 --- a/vm_insnhelper.c +++ b/vm_insnhelper.c @@ -1477,7 +1477,7 @@ vm_throw(rb_thread_t *th, rb_control_frame_t *reg_cfp, while ((VALUE *)cfp < th->stack + th->stack_size) { if (cfp->dfp == dfp) { - VALUE epc = epc = cfp->pc - cfp->iseq->iseq_encoded; + VALUE epc = cfp->pc - cfp->iseq->iseq_encoded; rb_iseq_t *iseq = cfp->iseq; int i; |