Parcourir la source

* fixed compilation of unit objpas in i8086 large memory model

git-svn-id: trunk@27249 -
nickysn il y a 11 ans
Parent
commit
a4ac2a3538
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  1. 1 1
      rtl/objpas/objpas.pp

+ 1 - 1
rtl/objpas/objpas.pp

@@ -48,7 +48,7 @@ unit objpas;
        TIntegerArray = IntegerArray;
        PIntegerArray = ^IntegerArray;
 {$ifdef CPU16}
-       PointerArray  = array [0..16*1024-2] of Pointer;
+       PointerArray  = array [0..(32768 div SizeOf(Pointer))-2] of Pointer;
 {$else CPU16}
        PointerArray  = array [0..512*1024*1024-2] of Pointer;
 {$endif CPU16}