ruby-changes:18154
From: akr <ko1@a...>
Date: Sat, 11 Dec 2010 10:13:46 +0900 (JST)
Subject: [ruby-changes:18154] Ruby:r30175 (trunk): * encoding.c: parenthesize macro arguments.
akr 2010-12-11 09:28:25 +0900 (Sat, 11 Dec 2010) New Revision: 30175 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=30175 Log: * encoding.c: parenthesize macro arguments. Modified files: trunk/ChangeLog trunk/encoding.c Index: encoding.c =================================================================== --- encoding.c (revision 30174) +++ encoding.c (revision 30175) @@ -1556,7 +1556,7 @@ /* locale insensitive ctype functions */ #define ctype_test(c, ctype) \ - (rb_isascii(c) && ONIGENC_IS_ASCII_CODE_CTYPE((c), ctype)) + (rb_isascii(c) && ONIGENC_IS_ASCII_CODE_CTYPE((c), (ctype))) int rb_isalnum(int c) { return ctype_test(c, ONIGENC_CTYPE_ALNUM); } int rb_isalpha(int c) { return ctype_test(c, ONIGENC_CTYPE_ALPHA); } Index: ChangeLog =================================================================== --- ChangeLog (revision 30174) +++ ChangeLog (revision 30175) @@ -1,3 +1,7 @@ +Sat Dec 11 09:24:57 2010 Tanaka Akira <akr@f...> + + * encoding.c: parenthesize macro arguments. + Sat Dec 11 08:12:48 2010 Eric Hodel <drbrain@s...> * ext/openssl/ossl.c, ext/openssl/ossl_pkey_rsa.c: Document RSA, RSA -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/