On Tue, 2007-06-05 at 17:36 -0700, ron minnich wrote:
> /* catch the bug */
> 
> struct x {
>   int botch:1;
> };
> 
> fun(){
>   struct x x;
>   x.botch = 0;
>   x.botch = 1;
> }
> 
> ok, what's the bug? anyone? I just found this out today. (no, I don't
> use bitfields, but insane people do)

  signed vs. unsigned int perhaps (meaning that x.botch becomes < 0
after the last assignment) ?

Thanks,
Roman.

Reply via email to