From 29c50ab25f24deb168cb0293c8c3259dad4c4b8f Mon Sep 17 00:00:00 2001 From: acqn Date: Sun, 19 Jul 2020 17:56:15 +0800 Subject: [PATCH] Corrected the error message about struct/union members not found. --- src/cc65/expr.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/cc65/expr.c b/src/cc65/expr.c index 828e0fd75..f28aa3965 100644 --- a/src/cc65/expr.c +++ b/src/cc65/expr.c @@ -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;