瀏覽代碼

* keep the tiny heap free blocks ordered by start address, instead of size.
Rationale: 1) TP7 compatibility, 2) easier debugging of heap corruption
problems

git-svn-id: trunk@28518 -

nickysn 11 年之前
父節點
當前提交
03a838556f
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      rtl/inc/tinyheap.inc

+ 1 - 1
rtl/inc/tinyheap.inc

@@ -178,7 +178,7 @@
                   p := TinyHeapBlocks;
                   prev := nil;
 
-                  while assigned(p) and (p^.Size < size) do
+                  while assigned(p) and (TTinyHeapPointerArithmeticType(p) < TTinyHeapPointerArithmeticType(b)) do
                     begin
                       prev := p;
                       p := p^.Next;