[fpc-devel]PowerPC, TypInfo
Mattias Gaertner
nc-gaertnma at netcologne.de
Sat Aug 14 21:07:48 CEST 2004
On Sat, 14 Aug 2004 20:46:30 +0200 Mattias Gaertner
<nc-gaertnma at netcologne.de> wrote:
>
> I found a bug in the RTTI under powerpc.
>
> Boolean properties stored in fields
> (e.g. properrty MyBoolean: boolean read FMyBoolean)
> always returns false.
>
> The GetOrdProp is used to read boolean values. It reads a longint and
> applies "and $ff" to get only the lowest byte. Under PowerPC the boolean
> value is stored just like under i386 in the first byte. Reading the
> longint under i386 works, but of course it does not under powerpc.
>
> So, either the compiler is wrong or the GetOrdValue function is wrong.
>
> Which one should I report?
I just found out, that this is also the case for ShortInt, SmallInt, Word
and Byte, but not for enums.
> It's one of the last show stoppers for Lazarus under Mac OS X.
Mattias
More information about the fpc-devel
mailing list