Skip to content

Commit 42f36e3

Browse files
author
Arnaud Bouchez
committed
let TTimeLogBits.Expand reset MilliSeconds field
1 parent 91c8bcd commit 42f36e3

File tree

3 files changed

+4
-3
lines changed

3 files changed

+4
-3
lines changed

src/core/mormot.core.datetime.pas

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2670,6 +2670,7 @@ procedure TTimeLogBits.Expand(out Date: TSynSystemTime);
26702670
Date.Hour := (V shr (6 + 6)) and 31;
26712671
Date.Minute := (V shr 6) and 63;
26722672
Date.Second := V and 63;
2673+
Date.MilliSecond := 0;
26732674
end;
26742675

26752676
procedure TTimeLogBits.From(const S: RawUtf8);

src/crypt/mormot.crypt.secure.pas

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2122,7 +2122,7 @@ TCryptStoreAlgo = class(TCryptAlgo)
21222122
// - could be seen as a certificates store of the poor (tm)
21232123
// - per usage lookup is in O(1) so faster than iterative ICryptCert.GetUsage
21242124
// - also features simple PEM / binary serialization methods
2125-
// - should be initialized by Clear at startup, or set as a TObject field
2125+
// - should be initialized by Clear at startup, or set as a class field
21262126
{$ifdef USERECORDWITHMETHODS}
21272127
TCryptCertPerUsage = record
21282128
{$else}
@@ -2134,7 +2134,7 @@ TCryptCertPerUsage = record
21342134
/// all usages currently stored in this list
21352135
Usages: TCryptCertUsages;
21362136
/// lookup table used by GetUsage()/PerUsage()
2137-
// - 0 means no certificate, or store the index in Cert[] + 1
2137+
// - 0 means no certificate, or store the index in List[] + 1
21382138
Index: array[TCryptCertUsage] of byte;
21392139
/// reset all storage and indexes
21402140
procedure Clear;

src/mormot.commit.inc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
'2.1.5557'
1+
'2.1.5558'

0 commit comments

Comments
 (0)