Browse Source

--- Merging r14420 into '.':
U rtl/inc/heap.inc

git-svn-id: branches/fixes_2_4@14425 -

marco 15 years ago
parent
commit
f7d0b256a3
1 changed files with 1 additions and 1 deletions
  1. 1 1
      rtl/inc/heap.inc

+ 1 - 1
rtl/inc/heap.inc

@@ -949,7 +949,7 @@ begin
   iter := high(iter);
   iter := high(iter);
   while assigned(pcurr) and (iter>0) do
   while assigned(pcurr) and (iter>0) do
   begin
   begin
-    if (pcurr^.size>size) then
+    if (pcurr^.size>=size) then
     begin
     begin
       if not assigned(pbest) or (pcurr^.size<pbest^.size) then
       if not assigned(pbest) or (pcurr^.size<pbest^.size) then
       begin
       begin