widl: Conformant arrays have a size of 0.
Conformant arrays should cause a size of 0 to be returned from type_memsize.
This commit is contained in:
parent
73023890c5
commit
90032b2da6
|
@ -430,8 +430,13 @@ static size_t type_memsize(const type_t *t, int ptr_level, const expr_t *array)
|
|||
size = 0;
|
||||
}
|
||||
|
||||
if (array && array->is_const)
|
||||
size *= array->cval;
|
||||
if (array)
|
||||
{
|
||||
if (array->is_const)
|
||||
size *= array->cval;
|
||||
else
|
||||
size = 0;
|
||||
}
|
||||
|
||||
return size;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue