diff options
author | Michael Forney <mforney@mforney.org> | 2022-05-13 12:00:17 -0700 |
---|---|---|
committer | Michael Forney <mforney@mforney.org> | 2022-05-13 12:00:17 -0700 |
commit | b82a2315827553f8d1e7476b1261c5f1d00a7c7e (patch) | |
tree | 2e088539da54f3e7dbcc3ac9d28cbbe5a2a74fe1 /expr.c | |
parent | d99805f26575a0e0a7323fdaf56daec7b1857eda (diff) |
expr: Fix qualifiers of base type during implicit array conversion
Diffstat (limited to 'expr.c')
-rw-r--r-- | expr.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -98,8 +98,9 @@ decay(struct expr *e) tq = e->qual; switch (t->kind) { case TYPEARRAY: + assert(tq == QUALNONE); e = mkunaryexpr(TBAND, e); - e->type = mkpointertype(t->base, tq); + e->type = mkpointertype(t->base, t->qual); e->decayed = true; break; case TYPEFUNC: |