mirror of
https://github.com/mirror/tinycc.git
synced 2024-12-28 04:00:06 +08:00
simplify VT_LONG parsing
This commit is contained in:
parent
8258abeb80
commit
a4cd2805f9
6
tccgen.c
6
tccgen.c
@ -3954,7 +3954,7 @@ static int parse_btype(CType *type, AttributeDef *ad)
|
||||
basic_type:
|
||||
next();
|
||||
basic_type1:
|
||||
if (u == VT_SHORT || u == VT_LONG) {
|
||||
if (u == VT_SHORT) {
|
||||
if (st != -1 || (bt != -1 && bt != VT_INT))
|
||||
tmbt: tcc_error("too many basic types");
|
||||
st = u;
|
||||
@ -3984,8 +3984,8 @@ static int parse_btype(CType *type, AttributeDef *ad)
|
||||
} else if (t & VT_LONG) {
|
||||
t = (t & ~(VT_LONG | VT_BTYPE)) | VT_LLONG;
|
||||
} else {
|
||||
u = VT_LONG;
|
||||
goto basic_type;
|
||||
t |= VT_LONG;
|
||||
typespec_found = 1;
|
||||
}
|
||||
next();
|
||||
break;
|
||||
|
Loading…
Reference in New Issue
Block a user