ruby-changes:15074
From: nobu <ko1@a...>
Date: Tue, 16 Mar 2010 14:06:36 +0900 (JST)
Subject: [ruby-changes:15074] Ruby:r26950 (trunk): * include/ruby/encoding.h (ENC_TO_ENCINDEX): suppress warnings.
nobu 2010-03-16 14:06:19 +0900 (Tue, 16 Mar 2010) New Revision: 26950 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=26950 Log: * include/ruby/encoding.h (ENC_TO_ENCINDEX): suppress warnings. Modified files: trunk/ChangeLog trunk/include/ruby/encoding.h Index: include/ruby/encoding.h =================================================================== --- include/ruby/encoding.h (revision 26949) +++ include/ruby/encoding.h (revision 26950) @@ -198,7 +198,7 @@ #define ENC_DUMMY_FLAG (1<<24) #define ENC_INDEX_MASK (~(~0U<<24)) -#define ENC_TO_ENCINDEX(enc) ((enc)->ruby_encoding_index & ENC_INDEX_MASK) +#define ENC_TO_ENCINDEX(enc) (int)((enc)->ruby_encoding_index & ENC_INDEX_MASK) #define ENC_DUMMY_P(enc) ((enc)->ruby_encoding_index & ENC_DUMMY_FLAG) #define ENC_SET_DUMMY(enc) ((enc)->ruby_encoding_index |= ENC_DUMMY_FLAG) Index: ChangeLog =================================================================== --- ChangeLog (revision 26949) +++ ChangeLog (revision 26950) @@ -1,3 +1,7 @@ +Tue Mar 16 14:06:13 2010 Nobuyoshi Nakada <nobu@r...> + + * include/ruby/encoding.h (ENC_TO_ENCINDEX): suppress warnings. + Tue Mar 16 14:03:24 2010 Nobuyoshi Nakada <nobu@r...> * configure.in (RSHIFT): parenthesize the argument of cast instead -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/