<div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div class="gmail_quote"><div dir="ltr">On Fri, Oct 12, 2018 at 1:07 PM Sven Barth via fpc-devel <<a href="mailto:fpc-devel@lists.freepascal.org">fpc-devel@lists.freepascal.org</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="auto"><div><div class="gmail_quote"><div dir="ltr">Dmitry Boyarintsev <<a href="mailto:skalogryz.lists@gmail.com" target="_blank">skalogryz.lists@gmail.com</a>> schrieb am Fr., 12. Okt. 2018, 17:26:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div class="gmail_quote"><div>Maybe "Boolean8"  type should help instead? <br></div><div>David, could you please test with Boolean8 instead of ByteBool?</div></div></div></blockquote></div></div><div dir="auto"><br></div><div dir="auto">Boolean8 is an alias to Boolean. But if you need to work with 1 and 0, but have 4 Byte width then you could try Boolean32. </div><div dir="auto"></div></div></blockquote><div><br></div><div>Hmm, this is odd.</div><div><a href="https://www.freepascal.org/docs-html/ref/refsu4.html">https://www.freepascal.org/docs-html/ref/refsu4.html</a></div><div>Boolean8, size=1, ord=1 </div><div>"In addition to the simple Boolean type, the additional Boolean8, Boolean16, Boolean32 and Boolean64 types exist. There are in fact integer types, which are assignment-compatible with the simple boolean type. As an integer, the values for True and False are 1 and 0. This can be used to interfac with C code that defines a boolean of this size with values 0 and 1."</div><div><br></div><div>Boolean8 is not exactly an alias to Boolean, as it's expected to act as an integer, rather than _Bool. (and would be expected? to be passed an integer).</div><div>However, fpc 3.0.4 doesn't have Boolean8 as builtin type. Instead it provides Boolean16+ only.  Maybe it's available in trunk only.</div><div><br></div><div>thanks,</div><div>Dmitry</div></div></div></div></div></div>