summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormame <mame@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2010-11-16 13:32:30 +0000
committermame <mame@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2010-11-16 13:32:30 +0000
commit6cba0f06639897912539f797cd1d5f502909dc1e (patch)
tree907b4955e6a7e7349507be45ba1597336dbe6daa
parent3124b5fc3efcd1ffc74e6093f96156139dfa2061 (diff)
* 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
-rw-r--r--ChangeLog5
-rw-r--r--vm_insnhelper.c2
2 files changed, 6 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index 432ef36114..f99c1245e4 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+Tue Nov 16 22:30:39 2010 Yusuke Endoh <mame@tsg.ne.jp>
+
+ * vm_insnhelper.c (vm_throw): remove fear of undefined behavior :-)
+ Coverity Scan found this bug.
+
Tue Nov 16 09:33:00 2010 Kenta Murata <mrkn@mrkn.jp>
* ext/bigdecimal/lib/bigdecimal/util.rb (to_digits): avoid unused
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;