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]
/
attribute.c
diff --git
a/attribute.c
b/attribute.c
index
40c9009
..
a29299a
100644
(file)
--- a/
attribute.c
+++ b/
attribute.c
@@
-187,9
+187,7
@@
static void handle_attribute_aligned(const attribute_t *attribute,
break;
case ENTITY_STRUCT:
case ENTITY_UNION:
break;
case ENTITY_STRUCT:
case ENTITY_UNION:
- if (alignment > (int)entity->compound.alignment) {
- entity->compound.alignment = alignment;
- }
+ entity->compound.alignment = MAX(entity->compound.alignment, (il_alignment_t)alignment);
break;
default:
break;
default: