You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
As part of the effort to support 64-bit time_t on 32-bit platforms, glibc uses macros to define functions like clock_gettime(), time(), mktime(), localtime() etc. This breaks old-time which uses the ccall calling convention.
As an example, the following code breaks on a 32-bit system with 64-bit time_t:
importSystem.Time
main =dolet clock =TOD30000000000let utc = toUTCTime clock
print$show clock
print$show$ toClockTime utc
output:
"Sat Jan 24 05:20:00 UTC 2065"
"Sun Feb 7 06:28:15 UTC 2106"
Here are some related fixes on other Haskell libraries:
As part of the effort to support 64-bit time_t on 32-bit platforms, glibc uses macros to define functions like
clock_gettime()
,time()
,mktime()
,localtime()
etc. This breaksold-time
which uses theccall
calling convention.As an example, the following code breaks on a 32-bit system with 64-bit time_t:
output:
Here are some related fixes on other Haskell libraries:
The text was updated successfully, but these errors were encountered: