mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2025-02-25 05:01:24 +00:00
[qfcc] Support arrays in dereference_type
This is needed to get the correct type from arrays of typedefed elements.
This commit is contained in:
parent
827ca3cf27
commit
fa5c3ab12e
1 changed files with 2 additions and 2 deletions
|
@ -834,8 +834,8 @@ unalias_type (const type_t *type)
|
|||
const type_t *
|
||||
dereference_type (const type_t *type)
|
||||
{
|
||||
if (!is_ptr (type) && !is_field (type)) {
|
||||
internal_error (0, "dereference non pointer/field type");
|
||||
if (!is_ptr (type) && !is_field (type) && !is_array (type)) {
|
||||
internal_error (0, "dereference non pointer/field/array type");
|
||||
}
|
||||
if (type->meta == ty_alias) {
|
||||
type = type->t.alias.full_type;
|
||||
|
|
Loading…
Reference in a new issue