diff options
Diffstat (limited to 'src/tools/lcc/src/expr.c')
-rw-r--r-- | src/tools/lcc/src/expr.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/tools/lcc/src/expr.c b/src/tools/lcc/src/expr.c index b8cb08b..96eec21 100644 --- a/src/tools/lcc/src/expr.c +++ b/src/tools/lcc/src/expr.c @@ -621,7 +621,7 @@ Tree cast(Tree p, Type type) { p = simplify(CVP, dst, p, NULL); else { if ((isfunc(src->type) && !isfunc(dst->type)) - || (!isfunc(src->type) && isfunc(dst->type))) + || (!isnullptr(p) && !isfunc(src->type) && isfunc(dst->type))) warning("conversion from `%t' to `%t' is compiler dependent\n", p->type, type); if (src->size != dst->size) |