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

ruby-changes:34613

From: ko1 <ko1@a...>
Date: Fri, 4 Jul 2014 18:58:19 +0900 (JST)
Subject: [ruby-changes:34613] ko1:r46695 (trunk): * parse.y (must_be_dynamic_symbol): fix missed-condition.

ko1	2014-07-04 18:42:55 +0900 (Fri, 04 Jul 2014)

  New Revision: 46695

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

  Log:
    * parse.y (must_be_dynamic_symbol): fix missed-condition.

  Modified files:
    trunk/ChangeLog
    trunk/parse.y
Index: ChangeLog
===================================================================
--- ChangeLog	(revision 46694)
+++ ChangeLog	(revision 46695)
@@ -1,3 +1,7 @@ https://github.com/ruby/ruby/blob/trunk/ChangeLog#L1
+Fri Jul  4 18:42:04 2014  Koichi Sasada  <ko1@a...>
+
+	* parse.y (must_be_dynamic_symbol): fix missed-condition.
+
 Fri Jul  4 18:38:11 2014  Koichi Sasada  <ko1@a...>
 
 	* parse.y (rb_pin_dynamic_symbol): should be `static' function.
Index: parse.y
===================================================================
--- parse.y	(revision 46694)
+++ parse.y	(revision 46695)
@@ -10417,7 +10417,7 @@ static ID intern_str(VALUE str); https://github.com/ruby/ruby/blob/trunk/parse.y#L10417
 static inline void
 must_be_dynamic_symbol(VALUE x)
 {
-    if (UNLIKELY(DYNAMIC_SYM_P(x))) {
+    if (UNLIKELY(!DYNAMIC_SYM_P(x))) {
 	if (STATIC_SYM_P(x)) {
 	    VALUE str;
 

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

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