From 864f60b8375eb0446ea1184f314d3bcac6fb7b87 Mon Sep 17 00:00:00 2001 From: akr Date: Sat, 11 Dec 2010 00:28:25 +0000 Subject: [PATCH] * encoding.c: parenthesize macro arguments. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30175 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- ChangeLog | 4 ++++ encoding.c | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 845f2829f4..86a9956f6d 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +Sat Dec 11 09:24:57 2010 Tanaka Akira + + * encoding.c: parenthesize macro arguments. + Sat Dec 11 08:12:48 2010 Eric Hodel * ext/openssl/ossl.c, ext/openssl/ossl_pkey_rsa.c: Document RSA, RSA diff --git a/encoding.c b/encoding.c index ac0e1ba842..2a9881bb08 100644 --- a/encoding.c +++ b/encoding.c @@ -1556,7 +1556,7 @@ Init_Encoding(void) /* 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); }