This is the mail archive of the
mailing list for the GCC project.
Preventing warnings (correction)
- From: Richard Stallman <rms at gnu dot org>
- To: gcc at gnu dot org
- Date: Wed, 17 Jan 2007 14:53:50 -0500
- Subject: Preventing warnings (correction)
- Reply-to: rms at gnu dot org
My suggestion is that
(EMACS_INT)(int)(i) > MOST_POSITIVE_FIXNUM
would avoid the warning. But we would not put the casts in the macro
FIXNUM_OVERFLOW_P itself, since that would negate the purpose of the
macro. Instead we would put the cast in the argument, when the
argument is an `int' anyway.