1
0
mirror of https://github.com/cc65/cc65.git synced 2024-06-19 14:29:40 +00:00

Corrected the error message about struct/union members not found.

This commit is contained in:
acqn 2020-07-19 17:56:15 +08:00 committed by Oliver Schmidt
parent bbcb39978c
commit 29c50ab25f

View File

@ -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;