<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <p>Thanks Jussi!<br>
    </p>
    <br>
    <div class="moz-cite-prefix">On 06/10/2018 09:27 PM, Jussi Lahtinen
      wrote:<br>
    </div>
    <blockquote type="cite"
cite="mid:CAFJMe7QvopfPEA0sJ92UYeh0xXQMY6YPz8oq8CfU1J_EEBxsdQ@mail.gmail.com">
      <div dir="ltr">
        <div>Use interger, otherwise you will start to experience random
          unexpected behaviour.</div>
        <div>However, keep in mind that passing values from Gambas
          greater, than 31bit may not be straightforward (they look like
          negative values in Gambas).<br>
        </div>
        <div><br>
        </div>
        <div><br>
        </div>
        <div>Jussi<br>
        </div>
      </div>
      <div class="gmail_extra"><br>
        <div class="gmail_quote">On Sun, Jun 10, 2018 at 9:20 PM,
          Demosthenes Koptsis <span dir="ltr"><<a
              href="mailto:demosthenesk@gmail.com" target="_blank"
              moz-do-not-send="true">demosthenesk@gmail.com</a>></span>
          wrote:<br>
          <blockquote class="gmail_quote" style="margin:0 0 0
            .8ex;border-left:1px #ccc solid;padding-left:1ex">
            <div bgcolor="#FFFFFF" text="#000000">
              <p>so your advice is to use Integer not Long.</p>
              <p>is this right?<br>
              </p>
              <div>
                <div class="h5"> <br>
                  <div class="m_3789414499244395719moz-cite-prefix">On
                    06/10/2018 09:10 PM, Jussi Lahtinen wrote:<br>
                  </div>
                </div>
              </div>
              <blockquote type="cite">
                <div>
                  <div class="h5">
                    <div dir="ltr">
                      <div class="gmail_extra">
                        <div class="gmail_quote">
                          <blockquote class="gmail_quote"
                            style="margin:0 0 0 .8ex;border-left:1px
                            #ccc solid;padding-left:1ex"><span> </span>That
                            means that the Gambas integer type is only
                            31 (+ 1) bits wide. Not wide enough to hold
                            a 32-bit unsigned integer if the<br>
                            highest bit is reserved for the sign bit.<br>
                            <br>
                            So then, if it is wide enough as you say,
                            how would one manage a 32-bit unsigned
                            integer in a 32-bit signed datatype?<br>
                          </blockquote>
                          <div><br>
                          </div>
                          <div>They both contain 32bits of information,
                            unsigned or not. Signed integer only means
                            that the most significant bit is reserved
                            for the sign.</div>
                          <div>When the library reads the signed value,
                            it ignores the original meaning of the most
                            significant bit, because it assumes it as
                            unsigned.</div>
                          <div><br>
                          </div>
                          <div><br>
                          </div>
                          <div>Jussi<br>
                          </div>
                          <div><br>
                          </div>
                          <div> <br>
                          </div>
                        </div>
                        <br>
                      </div>
                    </div>
                    <br>
                    <fieldset
                      class="m_3789414499244395719mimeAttachmentHeader"></fieldset>
                    <br>
                  </div>
                </div>
                <pre>----[ Gambas mailing-list is hosted by <a class="m_3789414499244395719moz-txt-link-freetext" href="https://www.hostsharing.net" target="_blank" moz-do-not-send="true">https://www.hostsharing.net</a> ]----
</pre>
              </blockquote>
              <br>
            </div>
            <br>
            <br>
            ----[ Gambas mailing-list is hosted by <a
              href="https://www.hostsharing.net" rel="noreferrer"
              target="_blank" moz-do-not-send="true">https://www.hostsharing.net</a>
            ]----<br>
            <br>
          </blockquote>
        </div>
        <br>
      </div>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
      <pre wrap="">
----[ Gambas mailing-list is hosted by <a class="moz-txt-link-freetext" href="https://www.hostsharing.net">https://www.hostsharing.net</a> ]----
</pre>
    </blockquote>
    <br>
  </body>
</html>