This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Do C++ signed types have modulo semantics?
Andrew Pinski <pinskia@physics.uc.edu> writes:
| On Jun 28, 2005, at 9:58 AM, Gabriel Dos Reis wrote:
|
| > Notice that in your rendition you're assuming that you can convert any
| > unsigned value > INT_MAX to a int without invoking undefined behaviour.
|
|
|
| If you read Nathan's mail correctly, the cast is implementation defined
| and not undefined behavior so your argument does not work.
I stand corrected!
-- Gaby