mirror of
https://github.com/cc65/cc65.git
synced 2025-01-12 02:30:44 +00:00
Rename PaddingBitWidth to PaddingBits
This commit is contained in:
parent
9858e47dfd
commit
6dc2bf1226
@ -773,7 +773,7 @@ static SymEntry* ParseStructDecl (const char* Name)
|
|||||||
if (BitOffs > 0) {
|
if (BitOffs > 0) {
|
||||||
if (FieldWidth <= 0 || (BitOffs + FieldWidth) > INT_BITS) {
|
if (FieldWidth <= 0 || (BitOffs + FieldWidth) > INT_BITS) {
|
||||||
/* Bits needed to byte-align the next field. */
|
/* Bits needed to byte-align the next field. */
|
||||||
unsigned PaddingBitWidth = -BitOffs % CHAR_BITS;
|
unsigned PaddingBits = -BitOffs % CHAR_BITS;
|
||||||
|
|
||||||
/* We need an anonymous name */
|
/* We need an anonymous name */
|
||||||
AnonName (Ident, "bit-field");
|
AnonName (Ident, "bit-field");
|
||||||
@ -781,10 +781,10 @@ static SymEntry* ParseStructDecl (const char* Name)
|
|||||||
/* Add an anonymous bit-field that aligns to the next
|
/* Add an anonymous bit-field that aligns to the next
|
||||||
** byte.
|
** byte.
|
||||||
*/
|
*/
|
||||||
AddBitField (Ident, StructSize, BitOffs, PaddingBitWidth);
|
AddBitField (Ident, StructSize, BitOffs, PaddingBits);
|
||||||
|
|
||||||
/* No bits left */
|
/* No bits left */
|
||||||
StructSize += (BitOffs + PaddingBitWidth) / CHAR_BITS;
|
StructSize += (BitOffs + PaddingBits) / CHAR_BITS;
|
||||||
BitOffs = 0;
|
BitOffs = 0;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user