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
The library makes the false assumption that time_t is equivalent to long. To avoid the year 2038 problem Linux distributions like Debian and Ubuntu have moved to using 64-bit time_t on 32-bit architectures like ARMv7.
The library makes the false assumption that time_t is equivalent to long.
To avoid the year 2038 problem Linux distributions have moved to using
64-bit time_t on 32-bit architectures.
Replace the LONG_MIN and LONG_MAX by new symbols TLOG_TIME_T_MIN,
TLOG_TIME_T_MAX.
Closes: Scribery#369
Signed-off-by: Heinrich Schuchardt <[email protected]>
The library makes the false assumption that time_t is equivalent to long. To avoid the year 2038 problem Linux distributions like Debian and Ubuntu have moved to using 64-bit time_t on 32-bit architectures like ARMv7.
Now we see test failures like:
FAIL tltest-timespec.c:169 -2147483648.999999999 cap- 2147483647.999999999 = 0.999999998 != -2147483648.999999999
FAIL tltest-timespec.c:170 2147483647.999999999 cap- -2147483648.999999999 = 0.999999998 != 2147483647.999999999
To resolve the issue tlog should check the width of time_t and define symbols for the minimum and maximum values of time_t accordingly.
The text was updated successfully, but these errors were encountered: