Re: [fpc-devel]PowerPC, TypInfo

2004-08-15 Thread Mattias Gaertner
On Sun, 15 Aug 2004 00:20:47 +0200 Florian Klaempfl [EMAIL PROTECTED] wrote: Jonas Maebe wrote: On 14 aug 2004, at 21:07, Mattias Gaertner wrote: 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

Re: [fpc-devel]PowerPC, TypInfo

2004-08-15 Thread Florian Klaempfl
Jonas Maebe wrote: On 15 aug 2004, at 00:20, Florian Klaempfl wrote: To me, the fact that it always reads a longint regardless of the size of the property seems to be inherently wrong. What if the last field of a class is a byte? Then you can read past the end of the class, possibly into

Re: [fpc-devel]PowerPC, TypInfo

2004-08-14 Thread Mattias Gaertner
On Sat, 14 Aug 2004 20:46:30 +0200 Mattias Gaertner [EMAIL PROTECTED] 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

Re: [fpc-devel]PowerPC, TypInfo

2004-08-14 Thread Jonas Maebe
On 14 aug 2004, at 21:07, Mattias Gaertner wrote: 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