Explorar o código

* i8086 compilation fix after changeset 42390

git-svn-id: trunk@42485 -
nickysn %!s(int64=6) %!d(string=hai) anos
pai
achega
a3a39e1640
Modificáronse 1 ficheiros con 4 adicións e 0 borrados
  1. 4 0
      rtl/objpas/typinfo.pp

+ 4 - 0
rtl/objpas/typinfo.pp

@@ -267,7 +267,11 @@ unit TypInfo;
         ArgData: Pointer;
       end;
 
+{$ifdef CPU16}
+      TAttributeEntryList = array[0..(High(SizeUInt) div SizeOf(TAttributeEntry))-1] of TAttributeEntry;
+{$else CPU16}
       TAttributeEntryList = array[0..$ffff] of TAttributeEntry;
+{$endif CPU16}
 
       TAttributeTable =
       {$ifndef FPC_REQUIRES_PROPER_ALIGNMENT}