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
1 changed files with 1 additions and 1 deletions

View File

@ -1219,7 +1219,7 @@ static void StructRef (ExprDesc* Expr)
NextToken ();
Field = FindStructField (Expr->Type, Ident);
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 */
ED_MakeConstAbs (Expr, 0, type_int);
return;