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

ruby-changes:28047

From: usa <ko1@a...>
Date: Thu, 4 Apr 2013 16:23:00 +0900 (JST)
Subject: [ruby-changes:28047] usa:r40099 (ruby_1_9_3): * ext/objspace/objspace.c (count_nodes): fix key for unknown node.

usa	2013-04-04 16:22:49 +0900 (Thu, 04 Apr 2013)

  New Revision: 40099

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

  Log:
    * ext/objspace/objspace.c (count_nodes): fix key for unknown node.
      based on a patch by tmm1 (Aman Gupta) in [ruby-core:53130] [Bug #8014]

  Modified files:
    branches/ruby_1_9_3/ChangeLog
    branches/ruby_1_9_3/ext/objspace/objspace.c
    branches/ruby_1_9_3/version.h

Index: ruby_1_9_3/ChangeLog
===================================================================
--- ruby_1_9_3/ChangeLog	(revision 40098)
+++ ruby_1_9_3/ChangeLog	(revision 40099)
@@ -1,3 +1,8 @@ https://github.com/ruby/ruby/blob/trunk/ruby_1_9_3/ChangeLog#L1
+Thu Apr  4 16:21:39 2013  NAKAMURA Usaku  <usa@r...>
+
+	* ext/objspace/objspace.c (count_nodes): fix key for unknown node.
+	  based on a patch by tmm1 (Aman Gupta) in [ruby-core:53130] [Bug #8014]
+
 Thu Apr  4 16:17:14 2013  Nobuyoshi Nakada  <nobu@r...>
 
 	* Makefile.in (miniruby, ruby): move MAINLIBC because linker arguments
Index: ruby_1_9_3/ext/objspace/objspace.c
===================================================================
--- ruby_1_9_3/ext/objspace/objspace.c	(revision 40098)
+++ ruby_1_9_3/ext/objspace/objspace.c	(revision 40099)
@@ -531,7 +531,7 @@ count_nodes(int argc, VALUE *argv, VALUE https://github.com/ruby/ruby/blob/trunk/ruby_1_9_3/ext/objspace/objspace.c#L531
 		COUNT_NODE(NODE_LAMBDA);
 		COUNT_NODE(NODE_OPTBLOCK);
 #undef COUNT_NODE
-	      default: node = INT2FIX(nodes[i]);
+	      default: node = INT2FIX(i);
 	    }
 	    rb_hash_aset(hash, node, SIZET2NUM(nodes[i]));
 	}
Index: ruby_1_9_3/version.h
===================================================================
--- ruby_1_9_3/version.h	(revision 40098)
+++ ruby_1_9_3/version.h	(revision 40099)
@@ -1,5 +1,5 @@ https://github.com/ruby/ruby/blob/trunk/ruby_1_9_3/version.h#L1
 #define RUBY_VERSION "1.9.3"
-#define RUBY_PATCHLEVEL 410
+#define RUBY_PATCHLEVEL 411
 
 #define RUBY_RELEASE_DATE "2013-04-04"
 #define RUBY_RELEASE_YEAR 2013

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

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