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

ruby-changes:28671

From: nobu <ko1@a...>
Date: Tue, 14 May 2013 17:25:05 +0900 (JST)
Subject: [ruby-changes:28671] nobu:r40723 (trunk): parse.y: fix argument type

nobu	2013-05-14 17:24:55 +0900 (Tue, 14 May 2013)

  New Revision: 40723

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

  Log:
    parse.y: fix argument type
    
    * parse.y (is_global_name_punct): fix argument type, to get rid of
      implicit promotion.

  Modified files:
    trunk/parse.y

Index: parse.y
===================================================================
--- parse.y	(revision 40722)
+++ parse.y	(revision 40723)
@@ -6179,7 +6179,7 @@ const unsigned int ruby_global_name_punc https://github.com/ruby/ruby/blob/trunk/parse.y#L6179
 #endif
 
 static inline int
-is_global_name_punct(const char c)
+is_global_name_punct(const int c)
 {
     if (c <= 0x20 || 0x7e < c) return 0;
     return (ruby_global_name_punct_bits[(c - 0x20) / 32] >> (c % 32)) & 1;

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

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