]> git.eshelyaron.com Git - emacs.git/commit
Fix malfunctioning cursor display on 32-bit Gtk
authorPaul Eggert <eggert@cs.ucla.edu>
Tue, 9 Oct 2018 16:47:28 +0000 (09:47 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Tue, 9 Oct 2018 16:48:37 +0000 (09:48 -0700)
commit1f88943924d4e5c98e209790ee8c69b8ab8621d0
tree35c181bcb92a43dd5e8815148339b825ec58ad6b
parentbd013a448b152a84cff9b18292d8272faf265447
Fix malfunctioning cursor display on 32-bit Gtk

This bug on 32-bit platforms was caused by the timespec_hz
definition going haywire because the C expression
FIXNUM_OVERFLOW_P (MOST_POSITIVE_FIXNUM) did not work in #if.
Eventually the numeric problem showed up as a malfunctioning
cursor (Bug#32992).  Fix the problem with MOST_POSITIVE_FIXNUM.
By the way, make_fixnum should check for integer overflow when
debugging; this would have made it easier to track this bug down.
But one fix at a time.
* src/lisp.h (INTTYPEBITS): Now a macro, so usable in #if.
(MOST_POSITIVE_FIXNUM): Mention it’s used in #if.
src/lisp.h