Browse Source

* fixed uninitialized var

git-svn-id: trunk@2654 -
peter 19 years ago
parent
commit
4b7f51b0aa
1 changed files with 1 additions and 1 deletions
  1. 1 1
      rtl/inc/heap.inc

+ 1 - 1
rtl/inc/heap.inc

@@ -983,8 +983,8 @@ var
   poc : poschunk;
   poc : poschunk;
 begin
 begin
   poc := pmc^.poc;
   poc := pmc^.poc;
-  chunksize:=chunkindex shl blockshift;
   chunkindex:=poc^.chunkindex;
   chunkindex:=poc^.chunkindex;
+  chunksize:=chunkindex shl blockshift;
   { statistics }
   { statistics }
   dec(internal_status.currheapused,chunksize);
   dec(internal_status.currheapused,chunksize);
   hp:=freelists_fixed[chunkindex];
   hp:=freelists_fixed[chunkindex];