X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=attribute.c;h=a29299a55c6ea994fb0c2251f6de7b61702af2c8;hb=779610287a11b207e958e31a29f0dd9ea5459e39;hp=40c9009938f25fc3522061ff1936cc3d94cb5d04;hpb=f71bd6bffd7d5876558595ed87491bb2deb4d6ed;p=cparser diff --git a/attribute.c b/attribute.c index 40c9009..a29299a 100644 --- 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: - if (alignment > (int)entity->compound.alignment) { - entity->compound.alignment = alignment; - } + entity->compound.alignment = MAX(entity->compound.alignment, (il_alignment_t)alignment); break; default: