# HG changeset patch # User Gerd Moellmann # Date 1002827600 0 # Node ID 15e432be013a706ae3d440bc298b1edf09201c8e # Parent 939f548d08cd1d3b3a8c62467306c9cde2ea6157 (FIXNUM_OVERFLOW_P): Cast I to EMACS_INT in comparisons in case I is of some unsigned type, in which case MOST_NEGATIVE_FIXNUM will be converted to unsigned, and the comparison becomes bogus. diff -r 939f548d08cd -r 15e432be013a src/lisp.h --- a/src/lisp.h Thu Oct 11 17:26:04 2001 +0000 +++ b/src/lisp.h Thu Oct 11 19:13:20 2001 +0000 @@ -477,7 +477,8 @@ /* Value is non-zero if C integer I doesn't fit into a Lisp fixnum. */ #define FIXNUM_OVERFLOW_P(i) \ - ((i) > MOST_POSITIVE_FIXNUM || (i) < MOST_NEGATIVE_FIXNUM) + ((EMACS_INT)(i) > MOST_POSITIVE_FIXNUM \ + || (EMACS_INT) (i) < MOST_NEGATIVE_FIXNUM) /* Extract a value or address from a Lisp_Object. */