From: Chris Cacciatore Date: Tue, 2 Aug 2016 18:31:09 +0000 (-0700) Subject: Reporting sym name for incompatible pointer types. X-Git-Tag: V2.16~85^2 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=refs%2Fpull%2F328%2Fhead;p=cc65 Reporting sym name for incompatible pointer types. --- diff --git a/src/cc65/typeconv.c b/src/cc65/typeconv.c index e4edd6a2e..78f43a50c 100644 --- a/src/cc65/typeconv.c +++ b/src/cc65/typeconv.c @@ -237,7 +237,7 @@ void TypeConversion (ExprDesc* Expr, Type* NewType) switch (TypeCmp (NewType, Expr->Type)) { case TC_INCOMPATIBLE: - Error ("Incompatible pointer types"); + Error ("Incompatible pointer types at '%s'", (!Expr->Sym? Expr->Sym->Name : "Unknown")); break; case TC_QUAL_DIFF: