I want to compute the offset/difference between two pointers. But I didn't
found a way to do that without compiler hints.

unit1.pas(42,6) Hint: Conversion between ordinals and pointers is not
portable

var
  p1, p2: pointer;
  i: PtrInt;
begin
  ...
  i:=PtrInt(p1)-PtrInt(p2);
  ...
end;

Any idea, how to get rid of the hint?

Mattias
_______________________________________________
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Reply via email to