Make unnamed bit-fields take up space.

They should take up the same space as a named bit-field of the same width.

This fixes #60.
This commit is contained in:
Stephen Heumann 2020-01-28 12:54:18 -06:00
parent e6a0769bed
commit a72b611272

View File

@ -2679,11 +2679,11 @@ var
variable^.disp := disp;
variable^.bitdisp := bitdisp;
variable^.bitsize := long(expressionValue).lsw;
bitdisp := bitdisp+long(expressionValue).lsw;
tPtr := variable^.itype;
end {if}
else
tPtr := typeSpec;
bitdisp := bitdisp+long(expressionValue).lsw;
if (tPtr^.kind <> scalarType)
or not (tPtr^.baseType in
[cgByte,cgUByte,cgWord,cgUWord,cgLong,cgULong])