Skip to content

Commit

Permalink
let TTimeLogBits.Expand reset MilliSeconds field
Browse files Browse the repository at this point in the history
  • Loading branch information
Arnaud Bouchez committed Jun 14, 2023
1 parent 91c8bcd commit 42f36e3
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions src/core/mormot.core.datetime.pas
Expand Up @@ -2670,6 +2670,7 @@ procedure TTimeLogBits.Expand(out Date: TSynSystemTime);
Date.Hour := (V shr (6 + 6)) and 31;
Date.Minute := (V shr 6) and 63;
Date.Second := V and 63;
Date.MilliSecond := 0;
end;

procedure TTimeLogBits.From(const S: RawUtf8);
Expand Down
4 changes: 2 additions & 2 deletions src/crypt/mormot.crypt.secure.pas
Expand Up @@ -2122,7 +2122,7 @@ TCryptStoreAlgo = class(TCryptAlgo)
// - could be seen as a certificates store of the poor (tm)
// - per usage lookup is in O(1) so faster than iterative ICryptCert.GetUsage
// - also features simple PEM / binary serialization methods
// - should be initialized by Clear at startup, or set as a TObject field
// - should be initialized by Clear at startup, or set as a class field
{$ifdef USERECORDWITHMETHODS}
TCryptCertPerUsage = record
{$else}
Expand All @@ -2134,7 +2134,7 @@ TCryptCertPerUsage = record
/// all usages currently stored in this list
Usages: TCryptCertUsages;
/// lookup table used by GetUsage()/PerUsage()
// - 0 means no certificate, or store the index in Cert[] + 1
// - 0 means no certificate, or store the index in List[] + 1
Index: array[TCryptCertUsage] of byte;
/// reset all storage and indexes
procedure Clear;
Expand Down
2 changes: 1 addition & 1 deletion src/mormot.commit.inc
@@ -1 +1 @@
'2.1.5557'
'2.1.5558'

0 comments on commit 42f36e3

Please sign in to comment.