added _Bool in bit-fields
This commit is contained in:
parent
c9c05ca5f0
commit
6b52984ce4
1 changed files with 1 additions and 0 deletions
1
tcc.c
1
tcc.c
|
@ -6371,6 +6371,7 @@ static void struct_decl(CType *type, int u)
|
|||
if (bt != VT_INT &&
|
||||
bt != VT_BYTE &&
|
||||
bt != VT_SHORT &&
|
||||
bt != VT_BOOL &&
|
||||
bt != VT_ENUM)
|
||||
error("bitfields must have scalar type");
|
||||
bsize = size * 8;
|
||||
|
|
Loading…
Reference in a new issue