aboutsummaryrefslogtreecommitdiff
path: root/bootstrap/types.c
diff options
context:
space:
mode:
authorlemon <lsof@mailbox.org>2022-08-08 09:16:13 +0200
committerlemon <lsof@mailbox.org>2022-08-08 09:16:13 +0200
commitf8a8add7d0e74d20304b3194e836752a9986ddc3 (patch)
treed4c72f796c9b97c229f299b1632c6a5c9ffc3e37 /bootstrap/types.c
parent0a57a8979a75ce5398b34817c86a55c6d0552bca (diff)
direct access of eunion fields
Diffstat (limited to 'bootstrap/types.c')
-rw-r--r--bootstrap/types.c1
1 files changed, 1 insertions, 0 deletions
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;