diff --git a/src/cc65/symentry.h b/src/cc65/symentry.h index d9139a8b7..1f91ff409 100644 --- a/src/cc65/symentry.h +++ b/src/cc65/symentry.h @@ -135,7 +135,7 @@ struct SymEntry { struct { unsigned Offs; /* Byte offset into struct */ unsigned BitOffs; /* Bit offset into last byte */ - unsigned Width; /* Width in bits */ + unsigned BitWidth; /* Width in bits */ } B; /* Data for functions */ diff --git a/src/cc65/symtab.c b/src/cc65/symtab.c index c3ca6ba94..6ab25d374 100644 --- a/src/cc65/symtab.c +++ b/src/cc65/symtab.c @@ -593,10 +593,10 @@ SymEntry* AddBitField (const char* Name, unsigned Offs, unsigned BitOffs, unsign Entry = NewSymEntry (Name, SC_BITFIELD); /* Set the symbol attributes. Bit-fields are always of type unsigned */ - Entry->Type = type_uint; - Entry->V.B.Offs = Offs; - Entry->V.B.BitOffs = BitOffs; - Entry->V.B.Width = Width; + Entry->Type = type_uint; + Entry->V.B.Offs = Offs; + Entry->V.B.BitOffs = BitOffs; + Entry->V.B.BitWidth = Width; /* Add the entry to the symbol table */ AddSymEntry (SymTab, Entry);