[fpc-pascal] Erorr: Illegal type conversion: "Set Of ShortInt" to "LongInt"
Jonas Maebe
jonas.maebe at elis.ugent.be
Fri Oct 8 10:41:43 CEST 2010
On 08 Oct 2010, at 10:33, Roland Turcan wrote:
> I have this conversion:
>
> type TWordSet = set of 0..15;
> PWordSet = ^TWordSet;
>
> var btn: TMsgDlgButtons;
>
> begin
> ...
> Integer(PWordSet(@btn)^) := Params[0]; // Params is Variant
> ...
> end;
>
>
> With FPC 2.4 it is OK, but up-to-date FPC SVN reports error in
> subject.
>
> Is it a bug or it needs different conversion.
http://wiki.freepascal.org/User_Changes_Trunk#Sizes_of_sets_in_TP.2FDelphi_mode
Jonas
More information about the fpc-pascal
mailing list