History

simplify VT_LONG parsing

Matthias Gatto committed 9 years ago

Commit a4cd2801 parent 8258abe1 file · +3 −3Browse files

Unified · Split

tccgen.c+3−3
@@ -3954,7 +3954,7 @@ static int parse_btype(CType *type, AttributeDef *ad) · 3953 unmodified lines
39543954 basic_type:
39553955 next();
39563956 basic_type1:
3957− if (u == VT_SHORT || u == VT_LONG) {
3957+ if (u == VT_SHORT) {
39583958 if (st != -1 || (bt != -1 && bt != VT_INT))
39593959 tmbt: tcc_error("too many basic types");
39603960 st = u;
@@ -3984,8 +3984,8 @@ static int parse_btype(CType *type, AttributeDef *ad) · 23 unmodified lines
39843984 } else if (t & VT_LONG) {
39853985 t = (t & ~(VT_LONG | VT_BTYPE)) | VT_LLONG;
39863986 } else {
3987− u = VT_LONG;
3988− goto basic_type;
3987+ t |= VT_LONG;
3988+ typespec_found = 1;
39893989 }
39903990 next();
39913991 break;

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t