Explorar o código

* 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 %!s(int64=11) %!d(string=hai) anos
pai
achega
a0f08f3d5c
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      rtl/objpas/objpas.pp

+ 1 - 1
rtl/objpas/objpas.pp

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