summaryrefslogtreecommitdiff
path: root/sv.c
diff options
context:
space:
mode:
authorNicholas Clark <nick@ccl4.org>2005-12-07 08:30:26 +0000
committerNicholas Clark <nick@ccl4.org>2005-12-07 08:30:26 +0000
commit4b0c957394e7f4b4f3c18e4601dd5a8c649fab82 (patch)
tree318282db117ae32a864f9456d425e244679c543b /sv.c
parent1f42692825f0c2ae2aff7c8dc9679ad797e3f97c (diff)
downloadperl-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.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/sv.c b/sv.c
index 6f2b84731d..f9d10fc36e 100644
--- a/sv.c
+++ b/sv.c
@@ -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))