[fpc-pascal] FPC 2.4.4 - Error: Illegal type conversion: "Set of TMySet" to "Byte" ... and vice versa

Jonas Maebe jonas.maebe at elis.ugent.be
Thu Oct 13 11:45:24 CEST 2011


On 13 Oct 2011, at 11:42, fred f wrote:

> I am trying to compile my code which is compatible with Delphi and FPC
> 2.5.1+, but when I try to compile on Mac OS X with 2.4.4 I have error
> message:
>
> Error: Illegal type conversion: "Set of TMyEnum" to "Byte"

It works in FPC 2.5.1+ because of this change: http://wiki.freepascal.org/User_Changes_Trunk#Sizes_of_sets_in_TP.2FDelphi_mode

You can add {$packset 1} to your source file get the same behaviour in  
2.4.4


Jonas



More information about the fpc-pascal mailing list