<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    <br>
    <br>
    <div class="moz-cite-prefix">On 10/12/18 8:17 AM, Dmitry Boyarintsev
      wrote:<br>
    </div>
    <blockquote type="cite"
cite="mid:CAMpTZrcxjTqECbVG6O-pKzSao5hGhzcKZ3G6z7jSHQiTT5ktEg@mail.gmail.com">
      <meta http-equiv="content-type" content="text/html; charset=utf-8">
      <div dir="ltr">
        <div dir="ltr">
          <div class="gmail_quote"><br>
            <div>So, I'm wondering if it's actually a compiler issue or
              headers issue.</div>
            <div>and can ByteBool be used as a substitute for signed
              char.</div>
            <div><br>
            </div>
            <div>thanks,</div>
            <div>Dmitry</div>
          </div>
        </div>
      </div>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
      <pre wrap="">_______________________________________________
fpc-devel maillist  -  <a class="moz-txt-link-abbreviated" href="mailto:fpc-devel@lists.freepascal.org">fpc-devel@lists.freepascal.org</a>
<a class="moz-txt-link-freetext" href="http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-devel">http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-devel</a>
</pre>
    </blockquote>
    Changing the header for NSMenuItem.setEnable(BOOL) to
    NSMenuItem(ByteBool) results in the following code in
    TCocoaWSmenuITem.setEnable:<br>
    <br>
        0x1001ba67e <+70>:  movq   %rax, %rbx<br>
        0x1001ba681 <+73>:  movq   0x329ef8(%rip), %rsi      ;
    "setEnabled:"<br>
        0x1001ba688 <+80>:  movb   -0x10(%rbp), %al<br>
        0x1001ba68b <+83>:  orb    %al, %al<br>
        0x1001ba68d <+85>:  setne  %dl<br>
        0x1001ba690 <+88>:  negb   %dl<br>
        0x1001ba692 <+90>:  movsbl %dl, %edx<br>
        0x1001ba695 <+93>:  movq   %rbx, %rdi<br>
        0x1001ba698 <+96>:  callq  0x1002d23da               ;
    symbol stub for: objc<br>
    <br>
    The movsbl %dl, %edx is good.  Unfortunately the value of %edx is
    0xffffffff not 0x00000001.  This is the same result I saw when I
    changed it to LongBool.<br>
    <br>
    David<br>
    <br>
    <br>
  </body>
</html>