summaryrefslogtreecommitdiff
path: root/sv.c
diff options
context:
space:
mode:
authorJarkko Hietaniemi <jhi@iki.fi>2001-11-07 16:01:37 +0000
committerJarkko Hietaniemi <jhi@iki.fi>2001-11-07 16:01:37 +0000
commita1e868e78b738bf013a42fa7247d72d0e6b6bba1 (patch)
tree7ccaa853c7ffa610f8184f0a4db476ff24bb5c0b /sv.c
parentcbe4ad0c13ec49e4976e0878325738b2d49d7b86 (diff)
downloadperl-a1e868e78b738bf013a42fa7247d72d0e6b6bba1.tar.gz
Tweak for Cray-friendliness from Nicholas Clark.
p4raw-id: //depot/perl@12892
Diffstat (limited to 'sv.c')
-rw-r--r--sv.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sv.c b/sv.c
index 74c3450180..19ce50ab07 100644
--- a/sv.c
+++ b/sv.c
@@ -5868,7 +5868,7 @@ Perl_sv_inc(pTHX_ register SV *sv)
#endif
if (SvIsUV(sv)) {
if (SvUVX(sv) == UV_MAX)
- sv_setnv(sv, (NV)UV_MAX + 1.0);
+ sv_setnv(sv, UV_MAX_P1);
else
(void)SvIOK_only_UV(sv);
++SvUVX(sv);