Explicitly set disp for every array element.

This is needed to properly deal with arrays of structures with unnamed bit-fields at the end.
This commit is contained in:
Stephen Heumann 2022-11-28 22:11:24 -06:00
parent 4a8b5b25c7
commit c58d84689a

View File

@ -2546,8 +2546,8 @@ var
maxDisp := disp;
end; {if}
end; {if}
disp := newDisp;
end; {if}
disp := startingDisp + count * ktp^.size;
InitializeTerm(ktp, 0, 0, false, hasNestedDesignator);
if disp > maxDisp then
maxDisp := disp;