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 ab00308..abeb924 100644
--- a/tccgen.c
+++ b/tccgen.c
@@ -2244,6 +2244,7 @@ ST_FUNC int type_size(CType *type, int *a)
ST_FUNC void vla_runtime_type_size(CType *type, int *a)
{
if (type->t & VT_VLA) {
+ type_size(&type->ref->type, a);
vset(&int_type, VT_LOCAL|VT_LVAL, type->ref->c);
} else {
vpushi(type_size(type, a));