Corrected the error message about struct/union members not found.
This commit is contained in:
parent
bbcb39978c
commit
29c50ab25f
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Reference in a new issue