[fpc-devel] Record types with unbounded trailing data

Ben Grasset operator97 at gmail.com
Tue Jun 25 19:19:45 CEST 2019


On Mon, Jun 24, 2019 at 12:41 AM Michael Van Canneyt <michael at freepascal.org>
wrote:

> If you want to get rid of warnings, define it as
> LOGPALETTE = record
>     palVersion : WORD;
>     palNumEntries : WORD;
>     palPalEntry : array[0..(MAXINT div sizeof(PALETTEENTRY)] of
> PALETTEENTRY;
> end;
>

Wouldn't that explicitly make the LOGPALETTE type unavoidably gigantic,
though?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freepascal.org/pipermail/fpc-devel/attachments/20190625/f85c5c76/attachment.html>


More information about the fpc-devel mailing list