From 5c6b43d91eadb3e9aa96ef8b2ff5a244081e30f0 Mon Sep 17 00:00:00 2001 From: akr Date: Sat, 4 Dec 2010 02:18:42 +0000 Subject: * class.c: parenthesize macro arguments. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30077 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- class.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'class.c') diff --git a/class.c b/class.c index 2241792eab..6d64873ff3 100644 --- a/class.c +++ b/class.c @@ -272,7 +272,7 @@ rb_singleton_class_attached(VALUE klass, VALUE obj) * @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 @@ rb_singleton_class_attached(VALUE klass, VALUE obj) * @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 @@ rb_undef_method(VALUE klass, const char *name) #define SPECIAL_SINGLETON(x,c) do {\ if (obj == (x)) {\ - return c;\ + return (c);\ }\ } while (0) -- cgit v1.2.3