[fpc-pascal] Error: Can't take the address of constant expressions
Roland Turcan
konf at rotursoft.sk
Mon Feb 21 16:59:22 CET 2011
Hello all,
I have this code:
type TMyObj = class
private
MyPWord:PWord;
...
end;
procedure TMyObj.Some;
begin
...
Inc (Cardinal (MyPWord), 2);
...
end;
and compiler says %subj%
This code works fine on 32bit compiler, but what should I change to get
this running on 64bit and get the code still compatible with 32bit
compiler as well.
Thanks.
--
Best regards, TRoland
http://www.rotursoft.sk
http://exekutor.rotursoft.sk
More information about the fpc-pascal
mailing list