summaryrefslogtreecommitdiff
path: root/bignum.c
diff options
context:
space:
mode:
Diffstat (limited to 'bignum.c')
-rw-r--r--bignum.c10
1 files changed, 0 insertions, 10 deletions
diff --git a/bignum.c b/bignum.c
index 50700b4c4a..0e15e58c12 100644
--- a/bignum.c
+++ b/bignum.c
@@ -4436,18 +4436,8 @@ rb_ull2inum(unsigned LONG_LONG n)
VALUE
rb_ll2inum(LONG_LONG n)
{
-#ifdef HAVE_BUILTIN___BUILTIN_MUL_OVERFLOW
- SIGNED_VALUE v;
- if (__builtin_mul_overflow(n, 2, &v)) {
- return rb_ll2big(n);
- }
- else {
- return ((VALUE)v) | RUBY_FIXNUM_FLAG;
- }
-#else
if (FIXABLE(n)) return LONG2FIX(n);
return rb_ll2big(n);
-#endif
}
#endif /* HAVE_LONG_LONG */