[fpc-devel] Illegal type conversion errors in FPC 2.5.1

Jonas Maebe jonas.maebe at elis.ugent.be
Sun Nov 22 23:06:02 CET 2009

On 22 Nov 2009, at 22:59, Juha Manninen wrote:

> Seems that integers and sets can't be casted to each other any more.

No, the size of sets in Delphi and TP mode has been made Delphi/TP compatible by default, i.o.w.: {$packsets 1} is now the default for Delphi and TP mode. To convert a non-ordinal type to an ordinal type, the size of both types must be the same. In the past, the default set packing for all modes was 4, so all sets with < 33 elements had size 4.

If TVTColumnOption has less than 9 elements, the size of a set of TVTColumnOption will now be 1 in TP/Delphi mode; if it has between 9 and 16 elements, its size will be 2.


More information about the fpc-devel mailing list