projects
/
cparser
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
cleanup: Add and use macro MAX().
[cparser]
/
parser.c
diff --git
a/parser.c
b/parser.c
index
b95b756
..
b637dd2
100644
(file)
--- a/
parser.c
+++ b/
parser.c
@@
-2106,9
+2106,7
@@
finish_designator:
type_t *first_type = first->type;
first_type = skip_typeref(first_type);
if (is_type_array(first_type)) {
type_t *first_type = first->type;
first_type = skip_typeref(first_type);
if (is_type_array(first_type)) {
- size_t index = first->v.index;
- if (index > path->max_index)
- path->max_index = index;
+ path->max_index = MAX(path->max_index, first->v.index);
}
/* append to initializers list */
}
/* append to initializers list */