[local-time-devel] Bugfix: nsec overflows fixnum on 32-bit archs
Daniel Lowe
dlowe at bitmuse.com
Thu Apr 16 20:15:57 UTC 2009
Maciej Katafiasz wrote:
> Hi,
>
> here's a bugfix for one issue that hit me on 32-bit SBCL. Since
> MOST-POSITIVE-FIXNUM is less than 10^9, nanoseconds can overflow a
> fixnum. This means that WITH-DECODED-TIMESTAMP (and by extension,
> ADJUST-TIMESTAMP) would fail randomly. The patch conditionalises the
> type declaration on whether a fixnum can hold all the required bits.
Thanks for bringing the bug to our attention. Unfortunately, you can't use
declarations that way in most implementations, but we can fix it anyway.
Sorry for the problems.
: Daniel :
More information about the local-time-devel
mailing list