From 502ebd379495d28a6535f259a2e8ce237126a097 Mon Sep 17 00:00:00 2001 From: naruse Date: Tue, 7 Mar 2017 19:48:00 +0000 Subject: Always use old RB_FIXABLE to allow double as argument git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@57806 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- include/ruby/ruby.h | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'include/ruby') diff --git a/include/ruby/ruby.h b/include/ruby/ruby.h index 1cc9937acb..212ba82dd7 100644 --- a/include/ruby/ruby.h +++ b/include/ruby/ruby.h @@ -359,11 +359,7 @@ rb_fix2ulong(VALUE x) #define RB_FIXNUM_P(f) (((int)(SIGNED_VALUE)(f))&RUBY_FIXNUM_FLAG) #define RB_POSFIXABLE(f) ((f) < RUBY_FIXNUM_MAX+1) #define RB_NEGFIXABLE(f) ((f) >= RUBY_FIXNUM_MIN) -#if defined HAVE_BUILTIN___BUILTIN_ADD_OVERFLOW -# define RB_FIXABLE(f) ({SIGNED_VALUE a=(f),c; !__builtin_add_overflow(a, a, &c);}) -#else -# define RB_FIXABLE(f) (RB_POSFIXABLE(f) && RB_NEGFIXABLE(f)) -#endif +#define RB_FIXABLE(f) (RB_POSFIXABLE(f) && RB_NEGFIXABLE(f)) #define FIX2LONG(x) RB_FIX2LONG(x) #define FIX2ULONG(x) RB_FIX2ULONG(x) #define FIXNUM_P(f) RB_FIXNUM_P(f) -- cgit v1.2.3