unsigned int in float assignment

Trent Waddington trent@codeplay.com
Wed Apr 3 00:36:00 GMT 2002


On Wed, 3 Apr 2002, Richard Henderson wrote:

> What's your point?  You've printed an unsigned quantity
> as a signed value.
> 
> Do
> 
>   cout << (0U - 53) << endl;
> 
> instead.  C++ overloading will show you how the
> promotions work.
> 

Good point.  Thanks for the clarification.

Trent



More information about the Gcc-bugs mailing list