This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]