This is a live mirror of the Perl 5 development currently hosted at
https://github.com/perl/perl5
https://perl5.git.perl.org
/
metaconfig.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
683dcd9
)
A builtin hard upper bound for sLOCALTIME_max to prevent AIX from stalling in the...
author
H.Merijn Brand
<merijn@nb09.procura.nl>
Mon, 29 Sep 2008 16:54:38 +0000
(18:54 +0200)
committer
H.Merijn Brand
<merijn@nb09.procura.nl>
Mon, 29 Sep 2008 16:54:38 +0000
(18:54 +0200)
U/perl/time_size.U
patch
|
blob
|
blame
|
history
diff --git
a/U/perl/time_size.U
b/U/perl/time_size.U
index
0741ea1
..
21a9486
100644
(file)
--- a/
U/perl/time_size.U
+++ b/
U/perl/time_size.U
@@
-150,7
+150,10
@@
time_t pt;
void local_check (time_t t)
{
- tmp = localtime (&t);
+ if (sizeof (time_t) > 4 && t > 0x7ffffffffffff000LL)
+ tmp = NULL;
+ else
+ tmp = localtime (&t);
if (tmp == NULL || tmp->tm_year < -1900)
tmp = NULL;
else