]> git.sur5r.net Git - cc65/commitdiff
Reporting sym name for incompatible pointer types. 328/head
authorChris Cacciatore <chris.cacciatore@gmail.com>
Tue, 2 Aug 2016 18:31:09 +0000 (11:31 -0700)
committerChris Cacciatore <chris.cacciatore@gmail.com>
Tue, 2 Aug 2016 18:31:09 +0000 (11:31 -0700)
src/cc65/typeconv.c

index e4edd6a2e9d1219d5ed9c0935d6989af7158156c..78f43a50c5ed09a71c99dd18c572aa66ed242262 100644 (file)
@@ -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: