Skip to content

Commit

Permalink
try to circumvent FPC trunk bug with TSynDictionary.ForEach
Browse files Browse the repository at this point in the history
  • Loading branch information
Arnaud Bouchez committed Mar 30, 2021
1 parent 1173793 commit 444fdc5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/core/mormot.core.json.pas
Original file line number Diff line number Diff line change
Expand Up @@ -9342,8 +9342,8 @@ function TSynDictionary.ForEach(const OnMatch: TOnSynDictionary;
try
result := 0;
if not Assigned(OnMatch) or
(not Assigned(KeyCompare) and
not Assigned(ValueCompare)) then
not (Assigned(KeyCompare) or
Assigned(ValueCompare)) then
exit;
n := fSafe.Padding[DIC_KEYCOUNT].VInteger;
k := fKeys.Value^;
Expand Down

0 comments on commit 444fdc5

Please sign in to comment.