This is the mail archive of the gcc-help@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: how to stop bit-field sign extension


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
> 


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