(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.
This commit is contained in:
parent
63ca0a6ee4
commit
fb756c1cd7
1 changed files with 2 additions and 1 deletions
|
@ -477,7 +477,8 @@ extern Lisp_Object make_number ();
|
|||
/* 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. */
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue