emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Preventing warnings in FIXNUM_OVERFLOW_P


From: Richard Stallman
Subject: Preventing warnings in FIXNUM_OVERFLOW_P
Date: Thu, 18 Jan 2007 12:27:57 -0500

Ian Lance Taylor <address@hidden> wrote:

    You can avoid it by using unsigned types.  I think that something like
    this will do the trick:

    #define FIXNUM_OVERFLOW_P(i)                                        \
      ((unsigned long long)(i) > MOST_POSITIVE_FIXNUM           \
       && (unsigned long long)(i) < MOST_NEGATIVE_FIXNUM)

Would someone please give that approach a try and see if it works?  I
am having too much trouble with concentration right now to see whether
that code is correct -- it might need somewhat more change than that
in order to get the comparisons right in an unsigned type.

Please ack with the results.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]