]> git.ipfire.org Git - thirdparty/coreutils.git/commit
pinky: prefer signed types
authorPaul Eggert <eggert@cs.ucla.edu>
Tue, 1 Aug 2023 00:51:03 +0000 (17:51 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Tue, 1 Aug 2023 00:51:29 +0000 (17:51 -0700)
commit0b2796750ff68eb58616655236d7003f6d30223a
tree49570dd06f1f4fe42e06652f2abbe76b6d5a9fae
parent703d2d6bd41da03f6b009d8d0e05ba033199bc6e
pinky: prefer signed types

* src/pinky.c (idle_string): Prefer intmax_t to unsigned long int;
this avoids an overflow on platforms where unsigned long is 32
bits and time_t is 64 bits (the bug could occur on such a system
that was idle for more than 6 million years, so it’s a bit
hard to supply a test case...).
src/pinky.c