Corrected the error message about struct/union members not found.
This commit is contained in:
@@ -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;
|
||||||
|
|||||||
Reference in New Issue
Block a user