mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2025-02-25 13:11:00 +00:00
[qfcc] Unalias type before checking for pointer/reference
Before adding references, looking at just type.type was ok whether or not the type was an alias, but checking the deref flag needs the type to be basic and not alias.
This commit is contained in:
parent
a61e20ab20
commit
421796b9ea
1 changed files with 2 additions and 0 deletions
|
@ -1293,12 +1293,14 @@ int is_##t (const type_t *type) \
|
|||
int
|
||||
is_pointer (const type_t *type)
|
||||
{
|
||||
type = unalias_type (type);
|
||||
return is_ptr (type) && !type->fldptr.deref;
|
||||
}
|
||||
|
||||
int
|
||||
is_reference (const type_t *type)
|
||||
{
|
||||
type = unalias_type (type);
|
||||
return is_ptr (type) && type->fldptr.deref;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue