NoName wrote:
> typedef char int8;
Check CHAR_BITS before making such claims.
> Conclusions:
>
> Underflow for int8 not detected, BAD
> Overflow for int8 not detected, BAD
Underflow or overflow of signed integers causes 'undefined behaviour',
i.e.
the standard doesn't make any requirements for it. Some compilers even use
this knowledge in order to optimise code.
> vMinInt32 = 2147483648; // same as -2147483648, solves warning,
> <- weakness in language.
Ahem, you really mean that x equals -x? You should look up the meaning of
suffixes like U or L to numeric literals.
BTW: if you actually have a question, you should state that.
Uli


|