2017-05-17 12:00:29 +02:00
|
|
|
Index: sv.c
|
|
|
|
===================================================================
|
|
|
|
--- sv.c.orig
|
|
|
|
+++ sv.c
|
|
|
|
@@ -2153,7 +2153,7 @@ S_sv_2iuv_common(pTHX_ SV *const sv)
|
2014-03-25 13:21:43 +01:00
|
|
|
#ifndef NV_PRESERVES_UV
|
2015-06-23 21:23:16 +02:00
|
|
|
&& SvIVX(sv) != IV_MIN /* avoid negating IV_MIN below */
|
2014-03-25 13:21:43 +01:00
|
|
|
&& (((UV)1 << NV_PRESERVES_UV_BITS) >
|
|
|
|
- (UV)(SvIVX(sv) > 0 ? SvIVX(sv) : -SvIVX(sv)))
|
2014-03-25 13:23:10 +01:00
|
|
|
+ (UV)(SvIVX(sv) > 0 ? (UV)SvIVX(sv) : -(UV)SvIVX(sv)))
|
2014-03-25 13:21:43 +01:00
|
|
|
/* Don't flag it as "accurately an integer" if the number
|
|
|
|
came from a (by definition imprecise) NV operation, and
|
|
|
|
we're outside the range of NV integer precision */
|