Treat string constant base types as having unknown number of elements.

I am not aware of any effect from this, but the change makes their element count consistent with the size of 0 (indicating an incomplete type).
This commit is contained in:
Stephen Heumann 2022-06-18 19:18:29 -05:00
parent 802ba3b0ba
commit a3104853fc
1 changed files with 3 additions and 3 deletions

View File

@ -1613,7 +1613,7 @@ with stringTypePtr^ do begin
qualifiers := [];
kind := arrayType;
aType := charPtr;
elements := 1;
elements := 0;
end; {with}
new(utf16StringTypePtr); {UTF-16 string constant type}
with utf16StringTypePtr^ do begin
@ -1622,7 +1622,7 @@ with utf16StringTypePtr^ do begin
qualifiers := [];
kind := arrayType;
aType := uShortPtr;
elements := 1;
elements := 0;
end; {with}
new(utf32StringTypePtr); {UTF-32 string constant type}
with utf32StringTypePtr^ do begin
@ -1631,7 +1631,7 @@ with utf32StringTypePtr^ do begin
qualifiers := [];
kind := arrayType;
aType := uLongPtr;
elements := 1;
elements := 0;
end; {with}
new(voidPtr); {void}
with voidPtr^ do begin