From 1a81d2e1e915e6e44df05544c30ffab400f32b67 Mon Sep 17 00:00:00 2001 From: matz Date: Wed, 1 Mar 2006 08:09:09 +0000 Subject: * ruby.h (SYM2ID): should not cast to signed long. [ruby-core:07414] git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8@10007 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- ruby.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'ruby.h') diff --git a/ruby.h b/ruby.h index 70e00ee1a..4c1cd148d 100644 --- a/ruby.h +++ b/ruby.h @@ -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) -- cgit