Re: C++: No Warning for passing value > 255 as parameter to a function requiring "unsigned char"

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

 



Martin Wodok <m.wodok@xxxxxxxxx> writes:

| Assigning 1000 is of course out of bounds for "unsigned char", thus the 

No, it is not.  Unsigned integer types are modulo types; it is no overflow.

-- Gaby

[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux