-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Signed bit field overflow.

You (don't) want "unsigned int botch:1;"

Yuck.

On 5-Jun-07, at 5:36 PM, 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)

ron

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (Darwin)

iD8DBQFGZgi1pJeHo/Fbu1wRAk8AAJ9GjwNz6JLxWav33huG68SjB4R1YACfZHNI
BtIRBQPaXw91oj5Am+VDVaU=
=Ai0G
-----END PGP SIGNATURE-----

Reply via email to