Dmitry Boyarintsev <skalogryz.li...@gmail.com> schrieb am Fr., 12. Okt. 2018, 02:07:
> On Thu, Oct 11, 2018 at 4:16 PM Jonas Maebe <jo...@freepascal.org> wrote: > >> However, the Objective-C BOOL type does not map to _Bool on x86-64, but >> to signed char. And values of that type indeed do need to (sign) >> extended. >> > > Should use of ByteBool resolve the problems for ObjC mapped headers for > the current version of the compiler? > is "ByteBool" an alias for Boolean, or is it forcefully "char" sized for > x86_64 ABI? > Even Boolean has the correct size of 1 Byte. The difference is the value of True: For Boolean its always 1, for ByteBool it's "not 0". Regards, Sven >
_______________________________________________ fpc-devel maillist - fpc-devel@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-devel