[前][次][番号順一覧][スレッド一覧]

ruby-changes:17796

From: mame <ko1@a...>
Date: Tue, 16 Nov 2010 22:32:40 +0900 (JST)
Subject: [ruby-changes:17796] Ruby:r29807 (trunk): * vm_insnhelper.c (vm_throw): remove fear of undefined behavior :-)

mame	2010-11-16 22:32:30 +0900 (Tue, 16 Nov 2010)

  New Revision: 29807

  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=29807

  Log:
    * vm_insnhelper.c (vm_throw): remove fear of undefined behavior :-)
      Coverity Scan found this bug.

  Modified files:
    trunk/ChangeLog
    trunk/vm_insnhelper.c

Index: ChangeLog
===================================================================
--- ChangeLog	(revision 29806)
+++ ChangeLog	(revision 29807)
@@ -1,3 +1,8 @@
+Tue Nov 16 22:30:39 2010  Yusuke Endoh  <mame@t...>
+
+	* 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@m...>
 
 	* ext/bigdecimal/lib/bigdecimal/util.rb (to_digits): avoid unused
Index: vm_insnhelper.c
===================================================================
--- vm_insnhelper.c	(revision 29806)
+++ vm_insnhelper.c	(revision 29807)
@@ -1477,7 +1477,7 @@
 
 		    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;
 

--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]