Browse Source

* fixed insertlistcopy to not reverse the list

git-svn-id: trunk@5288 -
peter 19 năm trước cách đây
mục cha
commit
99662d0bff
1 tập tin đã thay đổi với 2 bổ sung2 xóa
  1. 2 2
      compiler/cclasses.pas

+ 2 - 2
compiler/cclasses.pas

@@ -2029,13 +2029,13 @@ end;
       var
         NewNode,NewNode2 : TLinkedListItem;
       begin
-        NewNode:=p.First;
+        NewNode:=p.Last;
         while assigned(NewNode) do
          begin
            NewNode2:=NewNode.Getcopy;
            if assigned(NewNode2) then
             Insert(NewNode2);
-           NewNode:=NewNode.Next;
+           NewNode:=NewNode.Previous;
          end;
       end;