mirror of
https://github.com/cc65/cc65.git
synced 2025-01-26 17:36:57 +00:00
Avoided excess errors in incomplete struct assignment.
This commit is contained in:
parent
9317db6642
commit
0d53806490
@ -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;
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user