C++: No Warning for passing value > 255 as parameter to a function requiring "unsigned char"
Gabriel Dos Reis
gdr@integrable-solutions.net
Fri Jul 22 14:47:00 GMT 2005
Martin Wodok <m.wodok@osb-ag.de> 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
More information about the Gcc-help
mailing list