Merge pull request #328 from cacciatc/print-sym-name-incompatible-ptr-types
Reporting sym name for incompatible pointer types.
This commit is contained in:
commit
d90dff5861
1 changed files with 1 additions and 1 deletions
|
@ -237,7 +237,7 @@ void TypeConversion (ExprDesc* Expr, Type* NewType)
|
||||||
switch (TypeCmp (NewType, Expr->Type)) {
|
switch (TypeCmp (NewType, Expr->Type)) {
|
||||||
|
|
||||||
case TC_INCOMPATIBLE:
|
case TC_INCOMPATIBLE:
|
||||||
Error ("Incompatible pointer types");
|
Error ("Incompatible pointer types at '%s'", (!Expr->Sym? Expr->Sym->Name : "Unknown"));
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case TC_QUAL_DIFF:
|
case TC_QUAL_DIFF:
|
||||||
|
|
Loading…
Add table
Reference in a new issue