diff --git a/src/cc65/declare.c b/src/cc65/declare.c index bab852484..fbbe5529d 100644 --- a/src/cc65/declare.c +++ b/src/cc65/declare.c @@ -294,7 +294,7 @@ static void FixQualifiers (Type* DataType) while (T->C != T_END) { if (IsTypeArray (T)) { /* Extract any type qualifiers */ - Q |= GetQualifier (T->C); + Q |= GetQualifier (T); T->C = UnqualifiedType (T->C); } else { /* Add extracted type qualifiers here */