From 0d53806490cf65bccc9420507795a3be2d973847 Mon Sep 17 00:00:00 2001 From: acqn Date: Sat, 8 Aug 2020 06:46:22 +0800 Subject: [PATCH] Avoided excess errors in incomplete struct assignment. --- src/cc65/assignment.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/cc65/assignment.c b/src/cc65/assignment.c index 207e01588..53e0653ed 100644 --- a/src/cc65/assignment.c +++ b/src/cc65/assignment.c @@ -107,13 +107,13 @@ static int CopyStruct (ExprDesc* LExpr, ExprDesc* RExpr) g_push (CF_PTR | CF_UNSIGNED, 0); /* Load the size of the struct or union into the primary */ - g_getimmed (CF_INT | CF_UNSIGNED | CF_CONST, CheckedSizeOf (ltype), 0); + g_getimmed (CF_INT | CF_UNSIGNED | CF_CONST, SizeOf (ltype), 0); /* Call the memcpy function */ g_call (CF_FIXARGC, Func_memcpy, 4); } - return 0; + return 1; }