<div dir="auto"><div><div class="gmail_quote"><div dir="ltr">Dmitry Boyarintsev <<a href="mailto:skalogryz.lists@gmail.com">skalogryz.lists@gmail.com</a>> schrieb am Fr., 12. Okt. 2018, 02:07:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div class="gmail_quote"><div dir="ltr">On Thu, Oct 11, 2018 at 4:16 PM Jonas Maebe <<a href="mailto:jonas@freepascal.org" target="_blank" rel="noreferrer">jonas@freepascal.org</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">However, the Objective-C BOOL type does not map to _Bool on x86-64, but <br>
to signed char. And values of that type indeed do need to (sign) <br>
extended. <br></blockquote><div><br></div><div>Should use of ByteBool resolve the problems for ObjC mapped headers for the current version of the compiler? </div><div>is "ByteBool" an alias for Boolean, or is it forcefully "char" sized for x86_64 ABI?</div></div></div></blockquote></div></div><div dir="auto"><br></div><div dir="auto">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".</div><div dir="auto"><br></div><div dir="auto">Regards, </div><div dir="auto">Sven </div><div dir="auto"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
</blockquote></div></div></div>