mirror of
https://github.com/frida/tinycc
synced 2025-01-17 16:59:19 +03:00
Allow long long as a type of bitfields on x86-64.
This commit is contained in:
parent
4a8c2229ce
commit
ae607280c5
6
tcc.c
6
tcc.c
@ -6947,7 +6947,11 @@ static void struct_decl(CType *type, int u)
|
||||
bt != VT_BYTE &&
|
||||
bt != VT_SHORT &&
|
||||
bt != VT_BOOL &&
|
||||
bt != VT_ENUM)
|
||||
bt != VT_ENUM
|
||||
#ifdef TCC_TARGET_X86_64
|
||||
&& bt != VT_LLONG
|
||||
#endif
|
||||
)
|
||||
error("bitfields must have scalar type");
|
||||
bsize = size * 8;
|
||||
if (bit_size > bsize) {
|
||||
|
Loading…
Reference in New Issue
Block a user