[cfarm-users] What are people testing 32-bit builds on?
Peter Gutmann
pgut001 at cs.auckland.ac.nz
Mon May 18 14:39:27 CEST 2026
Paul Eggert <eggert at cs.ucla.edu> writes:
>/* This compiles if time_t is signed. */
>static_assert ((time_t) -1 < 0);
>
>/* This compiles if time_t is Y2038-safe. */
>static_assert (0 < (time_t) 0x80000000);
Nice, I hadn't thought about using static_assert() that way, I can replace the
runtime tests with compile-time ones.
Peter.
More information about the cfarm-users
mailing list