From 1f18ab218ed96d9d7eaf3aecb97d1a7764bb15fd Mon Sep 17 00:00:00 2001 From: bbbradsmith Date: Wed, 3 May 2023 13:35:51 -0400 Subject: [PATCH] Improve struct size error message to include the detected size --- src/cc65/function.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/cc65/function.c b/src/cc65/function.c index 39f04843f..38a8f45aa 100644 --- a/src/cc65/function.c +++ b/src/cc65/function.c @@ -601,7 +601,7 @@ void NewFunc (SymEntry* Func, FuncDesc* D) ** We don't currently support this case. */ if (RType == Param->Type) { - Error ("Passing '%s' of this size by value is not supported", GetFullTypeName (Param->Type)); + Error ("Passing '%s' of this size (%d) by value is not supported", GetFullTypeName (Param->Type), SizeOf (RType)); } }