From 9accf983e1ceb4635493b72ed0971deeba31e2d0 Mon Sep 17 00:00:00 2001
From: Chris Cacciatore <chris.cacciatore@gmail.com>
Date: Tue, 2 Aug 2016 11:31:09 -0700
Subject: [PATCH] Reporting sym name for incompatible pointer types.

---
 src/cc65/typeconv.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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: