summaryrefslogtreecommitdiff
path: root/util.c
diff options
context:
space:
mode:
authorJarkko Hietaniemi <jhi@iki.fi>1999-09-06 20:33:43 +0000
committerJarkko Hietaniemi <jhi@iki.fi>1999-09-06 20:33:43 +0000
commit15041a678a73e91c0e4cece2b3fd5f83d5128900 (patch)
treecd9546462d8091d12ae56cc28e5157e3b7afb234 /util.c
parent1291a1920c36dc45039a0acbf53957ff30304657 (diff)
downloadperl-15041a678a73e91c0e4cece2b3fd5f83d5128900.tar.gz
Fix UV_SIZEOF to UVSIZE; change the overflow tests
so that they overflow also on 64-bit platforms. p4raw-id: //depot/cfgperl@4093
Diffstat (limited to 'util.c')
-rw-r--r--util.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/util.c b/util.c
index 51d757512b..628b9565d6 100644
--- a/util.c
+++ b/util.c
@@ -2829,7 +2829,7 @@ Perl_scan_bin(pTHX_ char *start, I32 len, I32 *retlen)
if (!overflowed)
rnv = (NV) ruv;
if ( ( overflowed && rnv > 4294967295.0)
-#if UV_SIZEOF > 4
+#if UVSIZE > 4
|| (!overflowed && ruv > 0xffffffff )
#endif
) {
@@ -2894,7 +2894,7 @@ Perl_scan_oct(pTHX_ char *start, I32 len, I32 *retlen)
if (!overflowed)
rnv = (NV) ruv;
if ( ( overflowed && rnv > 4294967295.0)
-#if UV_SIZEOF > 4
+#if UVSIZE > 4
|| (!overflowed && ruv > 0xffffffff )
#endif
) {
@@ -2962,7 +2962,7 @@ Perl_scan_hex(pTHX_ char *start, I32 len, I32 *retlen)
if (!overflowed)
rnv = (NV) ruv;
if ( ( overflowed && rnv > 4294967295.0)
-#if UV_SIZEOF > 4
+#if UVSIZE > 4
|| (!overflowed && ruv > 0xffffffff )
#endif
) {