A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://mail.python.org/pipermail/python-dev/2006-August/068526.html below:

[Python-Dev] gcc 4.2 exposes signed integer overflows

[Python-Dev] gcc 4.2 exposes signed integer overflows [Python-Dev] gcc 4.2 exposes signed integer overflowsArmin Rigo arigo at tunes.org
Tue Aug 29 22:10:22 CEST 2006
Hi Tim,

On Sat, Aug 26, 2006 at 08:37:46PM -0400, Tim Peters wrote:
> [Thomas Wouters]
> > Why not just "... && x == LONG_MIN"?

> it's better (when possible) not to tie the code to that `x` was
> specifically declared as type "long" (e.g., just more stuff that will
> break if Python decides to make its short int of type PY_LONG_LONG
> instead).

The proposed "correct fix" breaks this goal too:

> >> "if (y == -1 && x < 0 && (unsigned long)x == -(unsigned long)x)".

                               ^^^^^^^^^^^^^        ^^^^^^^^^^^^^


A bientot,

Armin
More information about the Python-Dev mailing list

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4