mirror of
https://github.com/byteworksinc/ORCA-C.git
synced 2024-06-26 23:29:29 +00:00
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:
parent
4a8b5b25c7
commit
c58d84689a
|
@ -2546,8 +2546,8 @@ var
|
||||||
maxDisp := disp;
|
maxDisp := disp;
|
||||||
end; {if}
|
end; {if}
|
||||||
end; {if}
|
end; {if}
|
||||||
disp := newDisp;
|
|
||||||
end; {if}
|
end; {if}
|
||||||
|
disp := startingDisp + count * ktp^.size;
|
||||||
InitializeTerm(ktp, 0, 0, false, hasNestedDesignator);
|
InitializeTerm(ktp, 0, 0, false, hasNestedDesignator);
|
||||||
if disp > maxDisp then
|
if disp > maxDisp then
|
||||||
maxDisp := disp;
|
maxDisp := disp;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user