#1 2021-11-03 18:03:20

tbo
Member
Registered: 2015-04-20
Posts: 363

Warning in commit 522b564

Delphi 10.4.2, mORMot2, Commit 522b564

[dcc32 Warnung] mormot.core.os.pas(3884): W1073 Kombination von vorzeichenbehaftetem Typ und vorzeichenlosem 64-Bit-Typ - wird als vorzeichenloser Typ behandelt
Translation: Combination of signed type and unsigned 64-bit type - treated as unsigned type.

Warning in function WindowsFileTime64ToDateTime()

  result := (WinTime - DateFileTimeDelta) / 10000;

With best regards
Thomas

Offline

#2 2021-11-03 20:48:24

ab
Administrator
From: France
Registered: 2010-06-21
Posts: 15,035
Website

Re: Warning in commit 522b564

Should be fixed now.

Offline

#3 2021-11-04 05:54:47

sakura
Member
From: Germany
Registered: 2018-02-21
Posts: 240
Website

Re: Warning in commit 522b564

ab wrote:

Should be fixed now.

Nope, but a simple

const
  DateFileTimeDelta = UInt64(94353120000000000); // from year 1601 to 1899

would fix it - or did you forget to publish your commit?

Regards,
Daniel

Offline

#4 2021-11-04 08:34:43

ab
Administrator
From: France
Registered: 2010-06-21
Posts: 15,035
Website

Re: Warning in commit 522b564

Yes, I forgot to push a commit. wink

Offline

Board footer

Powered by FluxBB