From f8a8add7d0e74d20304b3194e836752a9986ddc3 Mon Sep 17 00:00:00 2001 From: lemon Date: Mon, 8 Aug 2022 09:16:13 +0200 Subject: direct access of eunion fields --- bootstrap/types.c | 1 + 1 file changed, 1 insertion(+) (limited to 'bootstrap/types.c') diff --git a/bootstrap/types.c b/bootstrap/types.c index 38d75d0..78a3df0 100644 --- a/bootstrap/types.c +++ b/bootstrap/types.c @@ -313,6 +313,7 @@ arraydecay(const struct type *ty) { int numtype2rank(const struct type *a) { + a = unconstify(a); if (a->t == TYint) { if (a->size < g_targ.intsize || a == ty_int) return 0; -- cgit v1.2.3