This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: unsigned int in float assignment
- From: Trent Waddington <trent at codeplay dot com>
- To: Richard Henderson <rth at redhat dot com>
- Cc: gcc-bugs at gcc dot gnu dot org
- Date: Wed, 3 Apr 2002 09:39:21 +0100 (GMT Daylight Time)
- Subject: Re: unsigned int in float assignment
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