Unused LONG_MAX_as_double
LONG_MAX_as_double is not needed when long is small enough to be exactly representable as a double, e.g., IL32LLP64 platforms.
This commit is contained in:
parent
487d290044
commit
ad6cbc1d33
2
bignum.c
2
bignum.c
@ -5369,6 +5369,7 @@ rb_integer_float_cmp(VALUE x, VALUE y)
|
|||||||
return INT2FIX(-1);
|
return INT2FIX(-1);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#if SIZEOF_LONG * CHAR_BIT >= DBL_MANT_DIG /* assume FLT_RADIX == 2 */
|
||||||
COMPILER_WARNING_PUSH
|
COMPILER_WARNING_PUSH
|
||||||
#ifdef __has_warning
|
#ifdef __has_warning
|
||||||
#if __has_warning("-Wimplicit-int-float-conversion")
|
#if __has_warning("-Wimplicit-int-float-conversion")
|
||||||
@ -5377,6 +5378,7 @@ COMPILER_WARNING_IGNORED(-Wimplicit-int-float-conversion)
|
|||||||
#endif
|
#endif
|
||||||
static const double LONG_MAX_as_double = LONG_MAX;
|
static const double LONG_MAX_as_double = LONG_MAX;
|
||||||
COMPILER_WARNING_POP
|
COMPILER_WARNING_POP
|
||||||
|
#endif
|
||||||
|
|
||||||
VALUE
|
VALUE
|
||||||
rb_integer_float_eq(VALUE x, VALUE y)
|
rb_integer_float_eq(VALUE x, VALUE y)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user