how to stop bit-field sign extension

Kevin Nomura nomura@netapp.com
Tue Sep 30 15:38:00 GMT 2003


I added a check to c-typeck.c to find where we are assigning 
unsigned long long from signed int, and this potential problem 
is widespread in our code base, albeit not usually from bit fields.  
Thank you for the response!


On Tue, Sep 30, 2003 at 06:32:09AM -0500, Eljay Love-Jensen wrote:
> Hi Kevin,
> 
> ll = x.a;
> ll <<= 16;
> 
> HTH,
> --Eljay
> 



More information about the Gcc-help mailing list