ruby-changes:18056
From: akr <ko1@a...>
Date: Sat, 4 Dec 2010 11:25:09 +0900 (JST)
Subject: [ruby-changes:18056] Ruby:r30077 (trunk): * class.c: parenthesize macro arguments.
akr 2010-12-04 11:18:42 +0900 (Sat, 04 Dec 2010) New Revision: 30077 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=30077 Log: * class.c: parenthesize macro arguments. Modified files: trunk/ChangeLog trunk/class.c Index: ChangeLog =================================================================== --- ChangeLog (revision 30076) +++ ChangeLog (revision 30077) @@ -1,3 +1,7 @@ +Sat Dec 4 11:18:10 2010 Tanaka Akira <akr@f...> + + * class.c: parenthesize macro arguments. + Sat Dec 4 11:07:57 2010 Nobuyoshi Nakada <nobu@r...> * vm_core.h (rb_vm_inc_const_missing_count): missing prototype. Index: class.c =================================================================== --- class.c (revision 30076) +++ class.c (revision 30077) @@ -272,7 +272,7 @@ * @retval 1 if \a k is a meta^(n)-class of Class class (n >= 0) * @retval 0 otherwise */ -#define META_CLASS_OF_CLASS_CLASS_P(k) (METACLASS_OF(k) == k) +#define META_CLASS_OF_CLASS_CLASS_P(k) (METACLASS_OF(k) == (k)) /*! @@ -283,7 +283,7 @@ * @note this macro creates a new eigenclass if necessary. */ #define ENSURE_EIGENCLASS(klass) \ - (rb_ivar_get(METACLASS_OF(klass), id_attached) == klass ? METACLASS_OF(klass) : make_metaclass(klass)) + (rb_ivar_get(METACLASS_OF(klass), id_attached) == (klass) ? METACLASS_OF(klass) : make_metaclass(klass)) /*! @@ -1224,7 +1224,7 @@ #define SPECIAL_SINGLETON(x,c) do {\ if (obj == (x)) {\ - return c;\ + return (c);\ }\ } while (0) -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/