aboutsummaryrefslogtreecommitdiff
path: root/tccgen.c
diff options
context:
space:
mode:
Diffstat (limited to 'tccgen.c')
-rw-r--r--tccgen.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/tccgen.c b/tccgen.c
index 27ea83f..cd6e690 100644
--- a/tccgen.c
+++ b/tccgen.c
@@ -4058,6 +4058,7 @@ static void gfunc_param_typed(Sym *func, Sym *arg)
gen_cast(&type);
} else if (vtop->type.t & VT_BITFIELD) {
type.t = vtop->type.t & (VT_BTYPE | VT_UNSIGNED);
+ type.ref = vtop->type.ref;
gen_cast(&type);
}
} else if (arg == NULL) {