typedef int s32; struct { s32 x:1; } foo; foo.x = -1; printf("%d", foo.x); // Guess what happens with gcc -funsigned-bitfields...
-
-
In response to the comment there, GCC needs to know the actual stdint.h types libc uses. For instance, -Wformat relies on it. __INT32_TYPE__ must match int32_t.
-
signed int and int are *the same type*. Except that int can be treated in an idiotically special way with bitfields.
-
Sounds right to me. Not sure what "the same type" means in C, in actuality, especially with differences like this. char / signed char / unsigned char being three types is also a fun but known surprise.
End of conversation
New conversation -
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.