From 1f978ba9fec1aee362d125916a91687f8e6b65c5 Mon Sep 17 00:00:00 2001 From: florian Date: Sat, 23 Mar 2013 19:25:00 +0000 Subject: [PATCH] * 16 bit targets cannot use Word and Longint as array index git-svn-id: branches/i8086@23973 - --- compiler/ppc8086.lpi | 9 ++++++++- compiler/ptype.pas | 7 +++++-- 2 files changed, 13 insertions(+), 3 deletions(-) diff --git a/compiler/ppc8086.lpi b/compiler/ppc8086.lpi index 4b993be9e0..b27d307e75 100644 --- a/compiler/ppc8086.lpi +++ b/compiler/ppc8086.lpi @@ -25,10 +25,12 @@ + + - + @@ -103,6 +105,11 @@ + + + + + diff --git a/compiler/ptype.pas b/compiler/ptype.pas index b8124440b4..0bfeed3e42 100644 --- a/compiler/ptype.pas +++ b/compiler/ptype.pas @@ -1109,8 +1109,11 @@ implementation orddef : begin if torddef(def).ordtype in [uchar, - u8bit,u16bit, - s8bit,s16bit,s32bit, + u8bit, + s8bit,s16bit, +{$if defined(cpu32bitaddr) or defined(cpu64bitaddr)} + u16bit,s32bit, +{$endif defined(cpu32bitaddr) or defined(cpu64bitaddr)} {$ifdef cpu64bitaddr} u32bit,s64bit, {$endif cpu64bitaddr}