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

Re: Please don't do this (code fragment)



elf@florence.buici.com writes:

> I'm not sure if we are talking about the same thing.  There is nothing
> I can find in the standard that guarantees that (int) MAX_INT + 1 < 0.
> There is a description of type conversion, but that doesn't talk about
> overflow behavoir for arithmetic.  If you wish your words to be
> believed, please provide a reference.  

As I said: "Further posts on the thread have corrected my faulty
memory....[i]n particular, overflow behavior is not
specified...signed/unsigned conversion [however] *is* so specified."

I cannot help but think you are not bothering to read what I write
before you attack it...

Thomas



Reply to: