Branch: refs/heads/blead
  Home:   https://github.com/Perl/perl5
  Commit: 505e27e339700701f7892a57bc737551eafb3e64
      
https://github.com/Perl/perl5/commit/505e27e339700701f7892a57bc737551eafb3e64
  Author: Lukas Mai <lukasmai....@gmail.com>
  Date:   2023-10-11 (Wed, 11 Oct 2023)

  Changed paths:
    M ext/POSIX/POSIX.xs
    M ext/POSIX/lib/POSIX.pm

  Log Message:
  -----------
  POSIX: fix mktime on 32-bit platforms with large time_t

If IV is a 32-bit type, but time_t is bigger, then it is possible for
mktime() to return values outside the 32-bit range (> 0x7fff_ffff after
2038-01-19). In that case, fall back to NV (i.e. floating point). A
double-precision floating point number provides more than 52 bits of
precision, which should be plenty.

Fixes #21551.


Reply via email to