ソースを参照

* rtl/heap: optimization, while looking for a big enough block, also use blocks that are exactly large enough

git-svn-id: trunk@14420 -
micha 15 年 前
コミット
347d71db10
1 ファイル変更1 行追加1 行削除
  1. 1 1
      rtl/inc/heap.inc

+ 1 - 1
rtl/inc/heap.inc

@@ -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