[fpc-pascal] Conversion between ordinals and pointers is not portable

Jonas Maebe jonas.maebe at elis.ugent.be
Wed Mar 2 10:33:23 CET 2011


On 02 Mar 2011, at 09:02, Roland Turcan wrote:

>  ...
>  p := PByteArray (PtrUInt (@FData.Content[0]) + MOffset);
>  ...
>
>
> But the compiler informs about %subj%.
>
> How to get rid of this warning and to make code portable?

Typecast to PByte instead of to PtrUInt.


Jonas



More information about the fpc-pascal mailing list