* while loop replaced with a repeat..until loop in InternalTinyFreeMem

git-svn-id: trunk@28161 -
This commit is contained in:
nickysn 2014-07-05 09:47:59 +00:00
parent 441e6c6083
commit 4e2cc365d1

View File

@ -105,9 +105,7 @@
b, p, prev: PTinyHeapBlock; b, p, prev: PTinyHeapBlock;
concatenated: boolean; concatenated: boolean;
begin begin
concatenated := true; repeat
while concatenated do
begin
concatenated := false; concatenated := false;
b := addr; b := addr;
@ -170,7 +168,7 @@
TinyHeapBlocks := b; TinyHeapBlocks := b;
end; end;
end; end;
end; until not concatenated;
end; end;
function SysTinyFreeMem(Addr: Pointer): ptruint; function SysTinyFreeMem(Addr: Pointer): ptruint;