diff --git a/tools/qfcc/source/expr_cast.c b/tools/qfcc/source/expr_cast.c index fb88f0361..3a99c4b5b 100644 --- a/tools/qfcc/source/expr_cast.c +++ b/tools/qfcc/source/expr_cast.c @@ -111,7 +111,8 @@ cast_expr (const type_t *dstType, const expr_t *e) || (is_enum (dstType) && srcType == type_default)) { 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); } if ((is_pointer (dstType) && is_string (srcType))