Skip to content

Commit 2325a07

Browse files
author
Arnaud Bouchez
committed
fixed compilation with latest Delphi revisions
1 parent df404e8 commit 2325a07

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

src/mormot.commit.inc

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

src/orm/mormot.orm.base.pas

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10533,7 +10533,7 @@ procedure TOrmCacheEntry.LockedFlushCacheEntry(Index: integer);
1053310533
end;
1053410534
end;
1053510535

10536-
function SortFind(P: TOrmCacheEntryValueDynArray; V: TID; R: PtrInt): PtrInt;
10536+
function SortFind(const P: TOrmCacheEntryValueDynArray; V: TID; R: PtrInt): PtrInt;
1053710537
var
1053810538
m, L: PtrInt;
1053910539
res: integer;
@@ -10563,7 +10563,7 @@ procedure TOrmCacheEntry.FlushCacheEntry(aID: TID);
1056310563
Safe.WriteLock;
1056410564
try
1056510565
if Value <> nil then
10566-
LockedFlushCacheEntry(SortFind(pointer(Value), aID, Count));
10566+
LockedFlushCacheEntry(SortFind(Value, aID, Count));
1056710567
finally
1056810568
Safe.WriteUnLock;
1056910569
end;
@@ -10579,7 +10579,7 @@ procedure TOrmCacheEntry.FlushCacheEntries(const aID: array of TID);
1057910579
try
1058010580
if Value <> nil then
1058110581
for i := 0 to high(aID) do
10582-
LockedFlushCacheEntry(SortFind(pointer(Value), aID[i], Count));
10582+
LockedFlushCacheEntry(SortFind(Value, aID[i], Count));
1058310583
finally
1058410584
Safe.WriteUnLock;
1058510585
end;
@@ -10722,7 +10722,7 @@ function TOrmCacheEntry.RetrieveEntry(aID: TID): POrmCacheEntryValue;
1072210722
result := nil;
1072310723
if Value = nil then
1072410724
exit;
10725-
i := SortFind(pointer(Value), aID, Count);
10725+
i := SortFind(Value, aID, Count);
1072610726
if i < 0 then
1072710727
exit;
1072810728
result := @Value[i];

0 commit comments

Comments
 (0)