Browse Source

* fix type declarations > 2gb

peter 22 years ago
parent
commit
60d69bd73f
1 changed files with 2 additions and 2 deletions
  1. 2 2
      fcl/image/fpimage.pp

+ 2 - 2
fcl/image/fpimage.pp

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