diff options
author | Nicholas Clark <nick@ccl4.org> | 2005-12-07 08:30:26 +0000 |
---|---|---|
committer | Nicholas Clark <nick@ccl4.org> | 2005-12-07 08:30:26 +0000 |
commit | 4b0c957394e7f4b4f3c18e4601dd5a8c649fab82 (patch) | |
tree | 318282db117ae32a864f9456d425e244679c543b /sv.c | |
parent | 1f42692825f0c2ae2aff7c8dc9679ad797e3f97c (diff) | |
download | perl-4b0c957394e7f4b4f3c18e4601dd5a8c649fab82.tar.gz |
3 instances of SvIsUV_on(sv); can be replaced with one.
p4raw-id: //depot/perl@26289
Diffstat (limited to 'sv.c')
-rw-r--r-- | sv.c | 4 |
1 files changed, 1 insertions, 3 deletions
@@ -1801,19 +1801,17 @@ S_sv_2iuv_common(pTHX_ SV *sv) { SvIsUV_on(sv); /* Integer is inaccurate. NOK, IOKp, is UV */ SvUV_set(sv, UV_MAX); - SvIsUV_on(sv); } else { SvUV_set(sv, U_V(SvNVX(sv))); /* 0xFFFFFFFFFFFFFFFF not an issue in here, NVs NV preservse UV so can do correct comparison. */ if ((NV)(SvUVX(sv)) == SvNVX(sv)) { SvIOK_on(sv); - SvIsUV_on(sv); } else { /* Integer is imprecise. NOK, IOKp, is UV */ - SvIsUV_on(sv); } } + SvIsUV_on(sv); } #else /* NV_PRESERVES_UV */ if ((numtype & (IS_NUMBER_IN_UV | IS_NUMBER_NOT_INT)) |