summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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;