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?

It's one of the last show stoppers for Lazarus under Mac OS X.


Mattias



-- 

_______________________________________________
fpc-devel maillist  -  [EMAIL PROTECTED]
http://lists.freepascal.org/mailman/listinfo/fpc-devel

Reply via email to