comparison src/events.c @ 5934:e2fae7783046 cygwin

lots of use of EMACS_INT, a few others, to eliminate all pointer truncation warnings
author Henry Thompson <ht@markup.co.uk>
date Sat, 12 Dec 2015 19:08:46 +0000
parents f9e4d44504a4
children d5eb0914ca1f
comparison
equal deleted inserted replaced
5933:c1e8f3294298 5934:e2fae7783046
1764 doesn't work on builds that don't support bignums. 1764 doesn't work on builds that don't support bignums.
1765 */ 1765 */
1766 return make_fixnum (MOST_POSITIVE_FIXNUM & XEVENT_TIMESTAMP (event)); 1766 return make_fixnum (MOST_POSITIVE_FIXNUM & XEVENT_TIMESTAMP (event));
1767 } 1767 }
1768 1768
1769 #define TIMESTAMP_HALFSPACE (1L << (FIXNUM_VALBITS - 2)) 1769 #define TIMESTAMP_HALFSPACE ((EMACS_INT)1 << (FIXNUM_VALBITS - 2))
1770 1770
1771 DEFUN ("event-timestamp<", Fevent_timestamp_lessp, 2, 2, 0, /* 1771 DEFUN ("event-timestamp<", Fevent_timestamp_lessp, 2, 2, 0, /*
1772 Return true if timestamp TIME1 is earlier than timestamp TIME2. 1772 Return true if timestamp TIME1 is earlier than timestamp TIME2.
1773 This correctly handles timestamp wrap. 1773 This correctly handles timestamp wrap.
1774 See also `event-timestamp' and `current-event-timestamp'. 1774 See also `event-timestamp' and `current-event-timestamp'.