diff options
author | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2006-03-01 08:09:09 +0000 |
---|---|---|
committer | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2006-03-01 08:09:09 +0000 |
commit | de2c6e833e118ae80af44c188ed8c6b6ec10111f (patch) | |
tree | f7aa9f2e4b37877ce86c3f20da4c98ddfe71061e /ruby.h | |
parent | 935bcd0d287ae77eedd81f827ac4bbe5232bd1be (diff) |
* ruby.h (SYM2ID): should not cast to signed long.
[ruby-core:07414]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@10007 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ruby.h')
-rw-r--r-- | ruby.h | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -167,7 +167,7 @@ VALUE rb_ull2inum _((unsigned LONG_LONG)); #define SYMBOL_FLAG 0x0e #define SYMBOL_P(x) (((VALUE)(x)&0xff)==SYMBOL_FLAG) #define ID2SYM(x) ((VALUE)(((long)(x))<<8|SYMBOL_FLAG)) -#define SYM2ID(x) RSHIFT((long)x,8) +#define SYM2ID(x) RSHIFT((unsigned long)x,8) /* special contants - i.e. non-zero and non-fixnum constants */ #define Qfalse ((VALUE)0) |