mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-16 04:49:19 +02:00
* while loop replaced with a repeat..until loop in InternalTinyFreeMem
git-svn-id: trunk@28161 -
This commit is contained in:
parent
441e6c6083
commit
4e2cc365d1
@ -105,9 +105,7 @@
|
||||
b, p, prev: PTinyHeapBlock;
|
||||
concatenated: boolean;
|
||||
begin
|
||||
concatenated := true;
|
||||
while concatenated do
|
||||
begin
|
||||
repeat
|
||||
concatenated := false;
|
||||
b := addr;
|
||||
|
||||
@ -170,7 +168,7 @@
|
||||
TinyHeapBlocks := b;
|
||||
end;
|
||||
end;
|
||||
end;
|
||||
until not concatenated;
|
||||
end;
|
||||
|
||||
function SysTinyFreeMem(Addr: Pointer): ptruint;
|
||||
|
Loading…
Reference in New Issue
Block a user