1
0
mirror of https://github.com/cc65/cc65.git synced 2024-06-07 07:29:33 +00:00

Fix full bytes vs full word in comment

This commit is contained in:
Jesse Rosenstock 2020-06-29 08:59:49 +02:00 committed by greg-king5
parent a00611798d
commit f4a6d08847

View File

@ -2087,7 +2087,7 @@ static unsigned ParseStructInit (Type* T, int AllowFlexibleMembers)
Shift = (Entry->V.B.Offs - SI.Offs) * CHAR_BITS + Entry->V.B.BitOffs;
SI.BitVal |= (Val << Shift);
/* Account for the data and output it if we have a full word */
/* Account for the data and output any full bytes we have. */
SI.ValBits += Entry->V.B.BitWidth;
/* Make sure unsigned is big enough to hold the value, 22 bits.
** This is 22 bits because the most we can have is 7 bits left