mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-13 14:49:47 +02:00
* rtl/heap: optimization, while looking for a big enough block, also use blocks that are exactly large enough
git-svn-id: trunk@14420 -
This commit is contained in:
parent
a6e6e9d453
commit
347d71db10
@ -951,7 +951,7 @@ begin
|
||||
iter := high(iter);
|
||||
while assigned(pcurr) and (iter>0) do
|
||||
begin
|
||||
if (pcurr^.size>size) then
|
||||
if (pcurr^.size>=size) then
|
||||
begin
|
||||
if not assigned(pbest) or (pcurr^.size<pbest^.size) then
|
||||
begin
|
||||
|
Loading…
Reference in New Issue
Block a user