mirror of
https://github.com/cc65/cc65.git
synced 2024-09-27 19:55:09 +00:00
Corrected the error message about struct/union members not found.
This commit is contained in:
parent
bbcb39978c
commit
29c50ab25f
@ -1219,7 +1219,7 @@ static void StructRef (ExprDesc* Expr)
|
|||||||
NextToken ();
|
NextToken ();
|
||||||
Field = FindStructField (Expr->Type, Ident);
|
Field = FindStructField (Expr->Type, Ident);
|
||||||
if (Field == 0) {
|
if (Field == 0) {
|
||||||
Error ("No field named '%s' found in %s", GetBasicTypeName (Expr->Type), Ident);
|
Error ("No field named '%s' found in %s", Ident, GetBasicTypeName (Expr->Type));
|
||||||
/* Make the expression an integer at address zero */
|
/* Make the expression an integer at address zero */
|
||||||
ED_MakeConstAbs (Expr, 0, type_int);
|
ED_MakeConstAbs (Expr, 0, type_int);
|
||||||
return;
|
return;
|
||||||
|
Loading…
Reference in New Issue
Block a user