unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* Preventing warnings in FIXNUM_OVERFLOW_P
@ 2007-01-18 17:27 Richard Stallman
  2007-01-18 18:34 ` David Kastrup
  2007-01-18 21:49 ` Eli Zaretskii
  0 siblings, 2 replies; 14+ messages in thread
From: Richard Stallman @ 2007-01-18 17:27 UTC (permalink / raw)


Ian Lance Taylor <iant@google.com> 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.

^ permalink raw reply	[flat|nested] 14+ messages in thread

end of thread, other threads:[~2007-01-21  6:49 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-01-18 17:27 Preventing warnings in FIXNUM_OVERFLOW_P Richard Stallman
2007-01-18 18:34 ` David Kastrup
2007-01-18 19:39   ` Stefan Monnier
2007-01-19 10:42     ` Richard Stallman
2007-01-19 11:50       ` Eli Zaretskii
2007-01-19 19:19         ` Stefan Monnier
2007-01-20  2:10           ` Richard Stallman
2007-01-20 13:45             ` Eli Zaretskii
2007-01-21  6:49               ` Richard Stallman
2007-01-19 10:42   ` Richard Stallman
2007-01-18 21:49 ` Eli Zaretskii
2007-01-19 10:43   ` Richard Stallman
2007-01-19 10:57     ` Eli Zaretskii
2007-01-20  2:10       ` Richard Stallman

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).