Subject: | $MaxInt calculation is wrong |
Time::Local uses $Config{intsize} to calculate the maximum number of
days that can be represented by an integer in Perl. This is wrong, as
intsize is the byte size of a C language 'int'. The correct value to
use would be $Config{ivsize}, which returns the number of bytes in an IV.
This is relevant on some 64-bit platforms (e.g. HP-UX), where intsize is
still 4, but ivsize is 8.
PS: The calculation and assignment to $MaxInt for non-MacOS platforms
happens twice; the second assignment can just be removed.