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
2244ST_FUNC void vla_runtime_type_size(CType *type, int *a)2244ST_FUNC void vla_runtime_type_size(CType *type, int *a)
2245{2245{
2246 if (type->t & VT_VLA) {2246 if (type->t & VT_VLA) {
2247 type_size(&type->ref->type, a);
2247 vset(&int_type, VT_LOCAL|VT_LVAL, type->ref->c);2248 vset(&int_type, VT_LOCAL|VT_LVAL, type->ref->c);
2248 } else {2249 } else {
2249 vpushi(type_size(type, a));2250 vpushi(type_size(type, a));