diff options
-rw-r--r-- | ChangeLog | 8 | ||||
-rw-r--r-- | include/ruby/ruby.h | 2 | ||||
-rw-r--r-- | version.h | 2 |
3 files changed, 10 insertions, 2 deletions
@@ -1,3 +1,11 @@ +Sun Sep 13 12:07:49 2009 Nobuyoshi Nakada <nobu@ruby-lang.org> + + * include/ruby/ruby.h (SYM2ID): needs parens. + + * include/ruby/ruby.h (NUM2INT, NUM2LL, INT2NUM, UINT2NUM), + (LONG2NUM, ULONG2NUM, NUM2CHR, rb_type_p, rb_special_const_p): + GCC specific optimization. + Sun Sep 13 09:38:06 2009 Nobuyoshi Nakada <nobu@ruby-lang.org> * lib/prime.rb (EratosthenesGenerator#initialize): call super. 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 { @@ -1,5 +1,5 @@ #define RUBY_VERSION "1.9.1" -#define RUBY_PATCHLEVEL 329 +#define RUBY_PATCHLEVEL 330 #define RUBY_VERSION_MAJOR 1 #define RUBY_VERSION_MINOR 9 #define RUBY_VERSION_TEENY 1 |