Fix bug when time_t is unsigned and as wide as intmax_t.
authorPaul Eggert <eggert@cs.ucla.edu>
Sun, 24 Jun 2012 04:11:19 +0000 (21:11 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Sun, 24 Jun 2012 04:11:19 +0000 (21:11 -0700)
commitf1dd807386718d2c7c29d13b9f7615759086a954
treefd8eefef3df95b6db09d8a03380f53f88be5832a
parentb82c175521ddd7d7ae8183c62fc87587b8b615e5
Fix bug when time_t is unsigned and as wide as intmax_t.

* lisp.h (WAIT_READING_MAX): New macro.
* dispnew.c (Fsleep_for, sit_for):
* keyboard.c (kbd_buffer_get_event):
* process.c (Faccept_process_output):
Use it to avoid bogus compiler warnings with obsolescent GCC versions.
This improves on the previous patch, which introduced a bug
when time_t is unsigned and as wide as intmax_t.
See <http://bugs.gnu.org/9000#51>.
src/ChangeLog
src/dispnew.c
src/keyboard.c
src/lisp.h
src/process.c