summaryrefslogtreecommitdiff
path: root/perl.c
diff options
context:
space:
mode:
authorJarkko Hietaniemi <jhi@iki.fi>2003-06-27 08:40:45 +0000
committerJarkko Hietaniemi <jhi@iki.fi>2003-06-27 08:40:45 +0000
commitbf1e01904b621fce6a1d1e1bcf187334cf1b1e04 (patch)
treed75b4c87b296e3fff7155b7f3de36d1005d43da8 /perl.c
parented085813cee9c22e7ad548a324c6d8f6d7d726d2 (diff)
downloadperl-bf1e01904b621fce6a1d1e1bcf187334cf1b1e04.tar.gz
atoi() doesn't cut the mustard if the PERL_HASH_SEED
is larger than INT_MAX (atoi() returns -1 in that case). p4raw-id: //depot/perl@19865
Diffstat (limited to 'perl.c')
-rw-r--r--perl.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/perl.c b/perl.c
index badb216fec..d0bf93130d 100644
--- a/perl.c
+++ b/perl.c
@@ -284,7 +284,7 @@ perl_construct(pTHXx)
if (s)
while (isSPACE(*s)) s++;
if (s && isDIGIT(*s))
- PL_hash_seed = (UV)atoi(s);
+ PL_hash_seed = (UV)Atoul(s);
#ifndef USE_HASH_SEED_EXPLICIT
else {
/* Compute a random seed */