From 6cba0f06639897912539f797cd1d5f502909dc1e Mon Sep 17 00:00:00 2001 From: mame Date: Tue, 16 Nov 2010 13:32:30 +0000 Subject: * 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 --- vm_insnhelper.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'vm_insnhelper.c') 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; -- cgit v1.2.3