Ver código fonte

* objpas.IntegerArray on 16 and 8-bit CPUs made as large as possible without
causing 'data element too large'

git-svn-id: trunk@27250 -

nickysn 11 anos atrás
pai
commit
a0f08f3d5c
1 arquivos alterados com 1 adições e 1 exclusões
  1. 1 1
      rtl/objpas/objpas.pp

+ 1 - 1
rtl/objpas/objpas.pp

@@ -41,7 +41,7 @@ unit objpas;
 
 
        { array types }
        { array types }
 {$ifdef CPU16}
 {$ifdef CPU16}
-       IntegerArray  = array[0..$eff] of Integer;
+       IntegerArray  = array[0..(32768 div SizeOf(Integer))-2] of Integer;
 {$else CPU16}
 {$else CPU16}
        IntegerArray  = array[0..$effffff] of Integer;
        IntegerArray  = array[0..$effffff] of Integer;
 {$endif CPU16}
 {$endif CPU16}