summaryrefslogtreecommitdiff
path: root/lisp/emacs-lisp/timer.el
diff options
context:
space:
mode:
authorPaul Eggert <eggert@cs.ucla.edu>2011-05-12 12:37:40 -0700
committerPaul Eggert <eggert@cs.ucla.edu>2011-05-12 12:37:40 -0700
commit8e55734abd164a7b170380ce0413d1d792429ce8 (patch)
tree6a9177c5130c419c089ee64d06b231aefed44afa /lisp/emacs-lisp/timer.el
parent6434756cc552458f871b66dbd28692c8de69633c (diff)
downloademacs-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/timer.el')
0 files changed, 0 insertions, 0 deletions