Do C++ signed types have modulo semantics?
Michael Veksler
VEKSLER@il.ibm.com
Tue Jun 28 12:35:00 GMT 2005
Steven Bosscher <stevenb@suse.de> wrote on 28/06/2005 15:30:27:
> On Tuesday 28 June 2005 14:16, Paul Koning wrote:
> >
> > I must be missing something.
>
> Yes.
>
> > Unsigned has wraparound (modulo)
> > semantics.
>
> The whole point is that it doesn't.
>
I think that you confuse between signed and unsigned.
Signed does not have modulo semantics (in GCC.
The standard permits it to have modulo semantics).
Michael
More information about the Gcc
mailing list