tech-net archive

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

Re: foo = (unsigned)bar; (was Re: dhcpcd-4.0.0-alpha1 ready for review)



On Fri, Apr 18, 2008 at 09:33:32AM +0100, Roy Marples wrote:
> signed char bar;
> unsigned char foo;
> foo = (unsigned)bar;

This extends negative values to int and truncated again to u_char.

Joerg


Home | Main Index | Thread Index | Old Index