From c58d84689a7ac88bf617707793ddb8718c805195 Mon Sep 17 00:00:00 2001 From: Stephen Heumann Date: Mon, 28 Nov 2022 22:11:24 -0600 Subject: [PATCH] Explicitly set disp for every array element. This is needed to properly deal with arrays of structures with unnamed bit-fields at the end. --- Parser.pas | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Parser.pas b/Parser.pas index 347f03c..c3514e4 100644 --- a/Parser.pas +++ b/Parser.pas @@ -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;