diff --git a/lang/ruby20/files/patch-include_ruby_ruby.h b/lang/ruby20/files/patch-include_ruby_ruby.h new file mode 100644 index 000000000000..5e78833e0d60 --- /dev/null +++ b/lang/ruby20/files/patch-include_ruby_ruby.h @@ -0,0 +1,11 @@ +--- include/ruby/ruby.h.orig 2015-09-20 20:42:37 UTC ++++ include/ruby/ruby.h +@@ -238,7 +238,7 @@ typedef char ruby_check_sizeof_voidp[SIZ + #define FIXNUM_MAX (LONG_MAX>>1) + #define FIXNUM_MIN RSHIFT((long)LONG_MIN,1) + +-#define INT2FIX(i) ((VALUE)(((SIGNED_VALUE)(i))<<1 | FIXNUM_FLAG)) ++#define INT2FIX(i) (((VALUE)(i))<<1 | FIXNUM_FLAG) + #define LONG2FIX(i) INT2FIX(i) + #define rb_fix_new(v) INT2FIX(v) + VALUE rb_int2inum(SIGNED_VALUE); diff --git a/lang/ruby21/files/patch-include_ruby_ruby.h b/lang/ruby21/files/patch-include_ruby_ruby.h new file mode 100644 index 000000000000..5c4fbc1c1909 --- /dev/null +++ b/lang/ruby21/files/patch-include_ruby_ruby.h @@ -0,0 +1,11 @@ +--- include/ruby/ruby.h.orig 2015-09-20 20:49:26 UTC ++++ include/ruby/ruby.h +@@ -228,7 +228,7 @@ typedef char ruby_check_sizeof_voidp[SIZ + #define FIXNUM_MAX (LONG_MAX>>1) + #define FIXNUM_MIN RSHIFT((long)LONG_MIN,1) + +-#define INT2FIX(i) ((VALUE)(((SIGNED_VALUE)(i))<<1 | FIXNUM_FLAG)) ++#define INT2FIX(i) (((VALUE)(i))<<1 | FIXNUM_FLAG) + #define LONG2FIX(i) INT2FIX(i) + #define rb_fix_new(v) INT2FIX(v) + VALUE rb_int2inum(SIGNED_VALUE);