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

Rename PaddingBitWidth to PaddingBits

This commit is contained in:
Jesse Rosenstock 2020-06-22 09:07:39 +02:00 committed by Oliver Schmidt
parent 9858e47dfd
commit 6dc2bf1226

View File

@ -773,7 +773,7 @@ static SymEntry* ParseStructDecl (const char* Name)
if (BitOffs > 0) {
if (FieldWidth <= 0 || (BitOffs + FieldWidth) > INT_BITS) {
/* Bits needed to byte-align the next field. */
unsigned PaddingBitWidth = -BitOffs % CHAR_BITS;
unsigned PaddingBits = -BitOffs % CHAR_BITS;
/* We need an anonymous name */
AnonName (Ident, "bit-field");
@ -781,10 +781,10 @@ static SymEntry* ParseStructDecl (const char* Name)
/* Add an anonymous bit-field that aligns to the next
** byte.
*/
AddBitField (Ident, StructSize, BitOffs, PaddingBitWidth);
AddBitField (Ident, StructSize, BitOffs, PaddingBits);
/* No bits left */
StructSize += (BitOffs + PaddingBitWidth) / CHAR_BITS;
StructSize += (BitOffs + PaddingBits) / CHAR_BITS;
BitOffs = 0;
}
}