summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authoryugui <yugui@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-11-01 15:48:23 +0000
committeryugui <yugui@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-11-01 15:48:23 +0000
commit6f1e3cc010a9a2d61dbf31c7cb6cc58cad9bdca4 (patch)
treeacf2a97a2cad33edbfc9401962148141af085dd2 /include
parent534a419203385413da8a886cade681ec67414c57 (diff)
merges r24888 from trunk into ruby_1_9_1.
-- * include/ruby/ruby.h (SYM2ID): needs parens. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_1@25619 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'include')
-rw-r--r--include/ruby/ruby.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/ruby/ruby.h b/include/ruby/ruby.h
index e098f38cce..eff93e96d7 100644
--- a/include/ruby/ruby.h
+++ b/include/ruby/ruby.h
@@ -258,7 +258,7 @@ VALUE rb_ull2inum(unsigned LONG_LONG);
#define SYMBOL_P(x) (((VALUE)(x)&~(~(VALUE)0<<RUBY_SPECIAL_SHIFT))==SYMBOL_FLAG)
#define ID2SYM(x) (((VALUE)(x)<<RUBY_SPECIAL_SHIFT)|SYMBOL_FLAG)
-#define SYM2ID(x) RSHIFT((unsigned long)x,RUBY_SPECIAL_SHIFT)
+#define SYM2ID(x) RSHIFT((unsigned long)(x),RUBY_SPECIAL_SHIFT)
/* special constants - i.e. non-zero and non-fixnum constants */
enum ruby_special_consts {