summaryrefslogtreecommitdiff
path: root/src/xfont.c
diff options
context:
space:
mode:
authorPaul Eggert <eggert@cs.ucla.edu>2014-09-24 13:30:28 -0700
committerPaul Eggert <eggert@cs.ucla.edu>2014-09-24 13:30:28 -0700
commit203a9eb0ec0e1f28958df5fa1a49c5a7e3f4cae8 (patch)
tree52781d0a379ff1927d2461265bd0b94f68254454 /src/xfont.c
parent0e176389a723f7eec072af62cde12314de7f70e2 (diff)
downloademacs-203a9eb0ec0e1f28958df5fa1a49c5a7e3f4cae8.tar.gz
emacs-203a9eb0ec0e1f28958df5fa1a49c5a7e3f4cae8.tar.bz2
emacs-203a9eb0ec0e1f28958df5fa1a49c5a7e3f4cae8.zip
Avoid signed integer overflow when converting Time to ptrdiff_t.
* keyboard.c (INPUT_EVENT_POS_MAX, INPUT_EVENT_POS_MIN): New macros. (position_to_Time, Time_to_position): New functions. (gen_help_event, kbd_buffer_get_event): Use them. * systime.h (Time) [emacs && !HAVE_X_WINDOWS]: Go back to plain 'unsigned long', so that 'Time' is the same for both X and non-X builds; this is less likely to cause surprise. * termhooks.h: Remove compile-time check that Time and ptrdiff_t are the same size; this is no longer required.
Diffstat (limited to 'src/xfont.c')
0 files changed, 0 insertions, 0 deletions