فهرست منبع

+ Fixec index check in exchange method.

michael 27 سال پیش
والد
کامیت
a5c52b5362
1فایلهای تغییر یافته به همراه5 افزوده شده و 2 حذف شده
  1. 5 2
      fcl/inc/lists.inc

+ 5 - 2
fcl/inc/lists.inc

@@ -159,7 +159,7 @@ procedure TList.Exchange(Index1, Index2: Integer);
 var Temp : Pointer;
 var Temp : Pointer;
 
 
 begin
 begin
-  If ((Index1>FCount) or (Index2>FCount)) or
+  If ((Index1>=FCount) or (Index2>=FCount)) or
      ((Index1<0) or (Index2<0)) then
      ((Index1<0) or (Index2<0)) then
     RunError(255);
     RunError(255);
   Temp:=FList^[Index1];
   Temp:=FList^[Index1];
@@ -386,7 +386,10 @@ end;
 
 
 {
 {
   $Log$
   $Log$
-  Revision 1.3  1998-05-05 15:54:31  michael
+  Revision 1.4  1998-05-06 07:27:22  michael
+  + Fixec index check in exchange method.
+
+  Revision 1.3  1998/05/05 15:54:31  michael
   TList completely implemented
   TList completely implemented
 
 
   Revision 1.2  1998/05/04 15:54:07  michael
   Revision 1.2  1998/05/04 15:54:07  michael