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
tests: Handle various time_t sizes in printf (#124)
The members of the timeval struct are both signed (defined by POSIX)
and typically both 64 bits on a system where time_t is 64 bits. This
is possible also on 32 bit systems where time_t is larger to handle
the 2038 problem.
It's practically impossible to find a type and printf format that
works even on all glibc systems. Play it safe and always use printf
with intmax_t.
Co-authored-by: Jim Garlick <[email protected]>
0 commit comments