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

ruby-changes:33348

From: nari <ko1@a...>
Date: Wed, 26 Mar 2014 14:14:57 +0900 (JST)
Subject: [ruby-changes:33348] nari:r45427 (trunk): cast to int to silence clang compile error

nari	2014-03-26 14:14:51 +0900 (Wed, 26 Mar 2014)

  New Revision: 45427

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

  Log:
    cast to int to silence clang compile error

  Modified files:
    trunk/parse.y
Index: parse.y
===================================================================
--- parse.y	(revision 45426)
+++ parse.y	(revision 45427)
@@ -10234,7 +10234,7 @@ id_type(ID id) https://github.com/ruby/ruby/blob/trunk/parse.y#L10234
     }
     else {
 	VALUE dsym = (VALUE)id;
-	return RSYMBOL(dsym)->type;
+	return (int)(RSYMBOL(dsym)->type);
     }
 }
 

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

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