mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2025-02-25 05:01:24 +00:00
[qfcc] Make pointer-function casts two-way
This fixes the cast for the think function in game-source/fbxa.
This commit is contained in:
parent
c88820c31e
commit
f92ab4f64b
1 changed files with 2 additions and 1 deletions
|
@ -111,7 +111,8 @@ cast_expr (const type_t *dstType, const expr_t *e)
|
||||||
|| (is_enum (dstType) && srcType == type_default)) {
|
|| (is_enum (dstType) && srcType == type_default)) {
|
||||||
return e;
|
return e;
|
||||||
}
|
}
|
||||||
if ((is_pointer (dstType) && is_func (srcType))) {
|
if ((is_pointer (dstType) && is_func (srcType))
|
||||||
|
|| (is_func (dstType) && is_pointer (srcType))) {
|
||||||
return new_alias_expr (dstType, e);
|
return new_alias_expr (dstType, e);
|
||||||
}
|
}
|
||||||
if ((is_pointer (dstType) && is_string (srcType))
|
if ((is_pointer (dstType) && is_string (srcType))
|
||||||
|
|
Loading…
Reference in a new issue