1
0
mirror of https://github.com/cc65/cc65.git synced 2025-08-09 13:25:06 +00:00

Merge pull request #328 from cacciatc/print-sym-name-incompatible-ptr-types

Reporting sym name for incompatible pointer types.
This commit is contained in:
Oliver Schmidt
2016-08-05 13:31:34 +02:00
committed by GitHub

View 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: