mirror of
https://github.com/mirror/tinycc.git
synced 2025-01-27 06:10:06 +08:00
tccgen: Fix broken use of ATTR_MODE
Sorry for that. -- By by ... Detlef
This commit is contained in:
parent
264a103610
commit
a3b932b3f9
4
tccgen.c
4
tccgen.c
@ -2900,8 +2900,8 @@ static int parse_btype(CType *type, AttributeDef *ad)
|
|||||||
case TOK_ATTRIBUTE1:
|
case TOK_ATTRIBUTE1:
|
||||||
case TOK_ATTRIBUTE2:
|
case TOK_ATTRIBUTE2:
|
||||||
parse_attribute(ad);
|
parse_attribute(ad);
|
||||||
if (ATTR_MODE(ad)) {
|
if (ad->mode) {
|
||||||
u = ATTR_MODE(ad) -1;
|
u = ad->mode -1;
|
||||||
t = (t & ~VT_BTYPE) | u;
|
t = (t & ~VT_BTYPE) | u;
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
Loading…
Reference in New Issue
Block a user