Meine printf Anweisung war nicht ganz legitim in ANSI-C. (http://stackoverflow.com/questions/8...egal-in-ansi-c)
Ich habe mal das Programm selber geschrieben und mit dem GCC compiliert. Bei mir funktioniert alles wie es soll:
PHP-Code:
struct
{
int a : 2;
} TestStruct;
TestStruct.a = 3;
De Code wird ohne Fehler compiliert. Dieser Code:
PHP-Code:
struct
{
int a : 2;
} TestStruct;
TestStruct.a = 4;
liefert die Compiler-Warnung:
main.c:21: warning: overflow in implicit constant conversion
Mfg Moebius
Lesezeichen