#1 2018-07-21 11:38:43

jonsafi
Member
Registered: 2011-07-26
Posts: 58

How to deal with compile error in D2009 appearing in newer releases..

Hello,

Tried updating my Mormot version to a later release (June '18),
and due to the  changes in TZipRead.RetrieveFileInfo (file SynZip.pas),
get a compiler error there with D2009.

This is probably due to an internal problem of NativeInt with D2009,
and indeed the error disappears when
changing the declaration

Var
    PDataStart: ZipPtrUint;

to:

Var
    PDataStart: NativeInt;

but as a result of that change, get an other error
'incompatible types ' in file Mormot.pas:

function TIPBan.Add(const aIP: RawUTF8): boolean;
var ip4: cardinal;
begin
  result := false;
  if (self=nil) or not IPToCardinal(aIP,ip4) then
    exit;
  fSafe.Lock; // ERROR here at compilation: gives' incompatible types'

Would be very grateful for any hints/pointers on how to deal with this issue..

Regards,
Sami

Offline

Board footer

Powered by FluxBB