diff options
author | Jarkko Hietaniemi <jhi@iki.fi> | 2003-06-27 08:40:45 +0000 |
---|---|---|
committer | Jarkko Hietaniemi <jhi@iki.fi> | 2003-06-27 08:40:45 +0000 |
commit | bf1e01904b621fce6a1d1e1bcf187334cf1b1e04 (patch) | |
tree | d75b4c87b296e3fff7155b7f3de36d1005d43da8 /perl.c | |
parent | ed085813cee9c22e7ad548a324c6d8f6d7d726d2 (diff) | |
download | perl-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.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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 */ |