diff options
author | Paul Eggert <eggert@cs.ucla.edu> | 2011-05-12 12:37:40 -0700 |
---|---|---|
committer | Paul Eggert <eggert@cs.ucla.edu> | 2011-05-12 12:37:40 -0700 |
commit | 8e55734abd164a7b170380ce0413d1d792429ce8 (patch) | |
tree | 6a9177c5130c419c089ee64d06b231aefed44afa /lisp/emacs-lisp/check-declare.el | |
parent | 6434756cc552458f871b66dbd28692c8de69633c (diff) | |
download | emacs-8e55734abd164a7b170380ce0413d1d792429ce8.tar.gz emacs-8e55734abd164a7b170380ce0413d1d792429ce8.tar.bz2 emacs-8e55734abd164a7b170380ce0413d1d792429ce8.zip |
* keyboard.c (make_lispy_event): Fix problem in integer overflow.
Don't assume that the difference between two unsigned long values
can fit into an integer. At this point, we know button_down_time
<= event->timestamp, so the difference must be nonnegative, so
there's no need to cast the result if double-click-time is
nonnegative, as it should be; check that it's nonnegative, just in
case. This bug is triggered when events are more than 2**31 ms
apart (about 25 days).
Diffstat (limited to 'lisp/emacs-lisp/check-declare.el')
0 files changed, 0 insertions, 0 deletions