소스 검색

* fixed data element too large

peter 21 년 전
부모
커밋
cf0fb016c6
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 2 2
      fcl/image/fpimage.pp

+ 2 - 2
fcl/image/fpimage.pp

@@ -54,7 +54,7 @@ type
   TFPColorArray = array [0..0] of TFPColor;
 {$R-}
 {$else not CPU68K}
-  TFPColorArray = array [0..(maxint-1) div sizeof(TFPColor)] of TFPColor;
+  TFPColorArray = array [0..(maxint-1) div sizeof(TFPColor)-1] of TFPColor;
 {$endif CPU68K}
   PFPColorArray = ^TFPColorArray;
 
@@ -156,7 +156,7 @@ type
   TFPIntegerArray = array [0..0] of integer;
 {$R-}
 {$else not CPU68K}
-  TFPIntegerArray = array [0..(maxint-1) div sizeof(integer)] of integer;
+  TFPIntegerArray = array [0..(maxint-1) div sizeof(integer)-1] of integer;
 {$endif CPU68K}
   PFPIntegerArray = ^TFPIntegerArray;