added _Bool in bit-fields

tcc-xref
bellard 2004-10-27 21:42:06 +00:00
parent c9c05ca5f0
commit 6b52984ce4
1 changed files with 1 additions and 0 deletions

1
tcc.c
View File

@ -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;