History

tccgen.c: make vla_runtime_type_size always return the alignment

Daniel Glöckner committed 10 years ago

Commit bf10bca1 parent 52a15221 file · +1 −0Browse files

Unified · Split

tccgen.c+1−0
@@ -2244,6 +2244,7 @@ ST_FUNC int type_size(CType *type, int *a) · 2243 unmodified lines
22442244 ST_FUNC void vla_runtime_type_size(CType *type, int *a)
22452245 {
22462246 if (type->t & VT_VLA) {
2247+ type_size(&type->ref->type, a);
22472248 vset(&int_type, VT_LOCAL|VT_LVAL, type->ref->c);
22482249 } else {
22492250 vpushi(type_size(type, a));