summaryrefslogtreecommitdiff
path: root/src/keyboard.h
diff options
context:
space:
mode:
authorPaul Eggert <eggert@cs.ucla.edu>2011-03-26 19:20:34 -0700
committerPaul Eggert <eggert@cs.ucla.edu>2011-03-26 19:20:34 -0700
commitffa8c828c6c76d3c246443a6752f1038eab60413 (patch)
tree0e5e4dad1a5036c854e3042748843d0d72ccfe5f /src/keyboard.h
parentc5101a77a4066d979698d356c3a9c7f387007359 (diff)
downloademacs-ffa8c828c6c76d3c246443a6752f1038eab60413.tar.gz
* keyboard.c, keyboard.h (num_input_events): Now size_t.
This avoids undefined behavior on integer overflow, and is a bit more convenient anyway since it is compared to a size_t variable.
Diffstat (limited to 'src/keyboard.h')
-rw-r--r--src/keyboard.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/keyboard.h b/src/keyboard.h
index ba3c909c4dd..31215199f14 100644
--- a/src/keyboard.h
+++ b/src/keyboard.h
@@ -194,8 +194,8 @@ extern KBOARD *all_kboards;
/* Nonzero in the single-kboard state, 0 in the any-kboard state. */
extern int single_kboard;
-/* Total number of times read_char has returned. */
-extern int num_input_events;
+/* Total number of times read_char has returned, modulo SIZE_MAX + 1. */
+extern size_t num_input_events;
/* Nonzero means polling for input is temporarily suppressed. */
extern int poll_suppress_count;