Skip Menu |

Preferred bug tracker

Please visit the preferred bug tracker to report your issue.

This queue is for tickets about the Time-Local CPAN distribution.

Report information
The Basics
Id: 31497
Status: resolved
Priority: 0/
Queue: Time-Local

People
Owner: Nobody in particular
Requestors: JDB [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: Normal
Broken in: 1.18
Fixed in: 1.19



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.
A patch for this bug is in core Perl already: http://public.activestate.com/cgi-bin/perlbrowse/p/32728