mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2024-11-23 04:42:32 +00:00
Unalias types when checking cast-compatibility
This fixes the problem with passing typedefs to function parameters.
This commit is contained in:
parent
69b5029de5
commit
4cec3bbff6
1 changed files with 1 additions and 1 deletions
|
@ -2374,7 +2374,7 @@ cast_expr (type_t *dstType, expr_t *e)
|
||||||
|
|
||||||
srcType = get_type (e);
|
srcType = get_type (e);
|
||||||
|
|
||||||
if (dstType == srcType)
|
if (unalias_type (dstType) == unalias_type (srcType))
|
||||||
return e;
|
return e;
|
||||||
|
|
||||||
if ((dstType == type_default && is_enum (srcType))
|
if ((dstType == type_default && is_enum (srcType))
|
||||||
|
|
Loading…
Reference in a new issue