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

ruby-changes:45591

From: naruse <ko1@a...>
Date: Mon, 20 Feb 2017 19:59:19 +0900 (JST)
Subject: [ruby-changes:45591] naruse:r57663 (trunk): Cast as VALUE to suppress type warnings

naruse	2017-02-20 19:59:10 +0900 (Mon, 20 Feb 2017)

  New Revision: 57663

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

  Log:
    Cast as VALUE to suppress type warnings

  Modified files:
    trunk/parse.y
Index: parse.y
===================================================================
--- parse.y	(revision 57662)
+++ parse.y	(revision 57663)
@@ -786,7 +786,7 @@ static VALUE parser_heredoc_dedent(struc https://github.com/ruby/ruby/blob/trunk/parse.y#L786
 #define FIXME 0
 
 #else
-#define ID2VAL(id) (id)
+#define ID2VAL(id) ((VALUE)(id))
 #define TOKEN2VAL(t) ID2VAL(t)
 #endif /* RIPPER */
 

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

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