<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <p>size_t in c holds values 0 to 4,294,967,295</p>
    <p>gambas integer holds <span style="color: rgb(64, 64, 64);
        font-family: sans-serif; font-size: medium; font-style: normal;
        font-variant-ligatures: normal; font-variant-caps: normal;
        font-weight: 400; letter-spacing: normal; orphans: 2;
        text-align: start; text-indent: 0px; text-transform: none;
        white-space: normal; widows: 2; word-spacing: 0px;
        -webkit-text-stroke-width: 0px; background-color: rgb(248, 248,
        248); text-decoration-style: initial; text-decoration-color:
        initial; display: inline !important; float: none;">-2.147.483.648...+2.147.483.647</span></p>
    <p><span style="color: rgb(64, 64, 64); font-family: sans-serif;
        font-size: medium; font-style: normal; font-variant-ligatures:
        normal; font-variant-caps: normal; font-weight: 400;
        letter-spacing: normal; orphans: 2; text-align: start;
        text-indent: 0px; text-transform: none; white-space: normal;
        widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px;
        background-color: rgb(248, 248, 248); text-decoration-style:
        initial; text-decoration-color: initial; display: inline
        !important; float: none;">gambas long holds </span><br>
      <span style="color: rgb(64, 64, 64); font-family: sans-serif;
        font-size: medium; font-style: normal; font-variant-ligatures:
        normal; font-variant-caps: normal; font-weight: 400;
        letter-spacing: normal; orphans: 2; text-align: start;
        text-indent: 0px; text-transform: none; white-space: normal;
        widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px;
        background-color: rgb(248, 248, 248); text-decoration-style:
        initial; text-decoration-color: initial; display: inline
        !important; float: none;"><span style="color: rgb(64, 64, 64);
          font-family: sans-serif; font-size: medium; font-style:
          normal; font-variant-ligatures: normal; font-variant-caps:
          normal; font-weight: 400; letter-spacing: normal; orphans: 2;
          text-align: start; text-indent: 0px; text-transform: none;
          white-space: normal; widows: 2; word-spacing: 0px;
          -webkit-text-stroke-width: 0px; background-color: rgb(248,
          248, 248); text-decoration-style: initial;
          text-decoration-color: initial; display: inline !important;
          float: none;">-9.223.372.036.854.775.808...+9.223.372.036.854.775.807</span></span></p>
    <p><span style="color: rgb(64, 64, 64); font-family: sans-serif;
        font-size: medium; font-style: normal; font-variant-ligatures:
        normal; font-variant-caps: normal; font-weight: 400;
        letter-spacing: normal; orphans: 2; text-align: start;
        text-indent: 0px; text-transform: none; white-space: normal;
        widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px;
        background-color: rgb(248, 248, 248); text-decoration-style:
        initial; text-decoration-color: initial; display: inline
        !important; float: none;"><span style="color: rgb(64, 64, 64);
          font-family: sans-serif; font-size: medium; font-style:
          normal; font-variant-ligatures: normal; font-variant-caps:
          normal; font-weight: 400; letter-spacing: normal; orphans: 2;
          text-align: start; text-indent: 0px; text-transform: none;
          white-space: normal; widows: 2; word-spacing: 0px;
          -webkit-text-stroke-width: 0px; background-color: rgb(248,
          248, 248); text-decoration-style: initial;
          text-decoration-color: initial; display: inline !important;
          float: none;">so i thing long is the correct choice.</span></span></p>
    <p><span style="color: rgb(64, 64, 64); font-family: sans-serif;
        font-size: medium; font-style: normal; font-variant-ligatures:
        normal; font-variant-caps: normal; font-weight: 400;
        letter-spacing: normal; orphans: 2; text-align: start;
        text-indent: 0px; text-transform: none; white-space: normal;
        widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px;
        background-color: rgb(248, 248, 248); text-decoration-style:
        initial; text-decoration-color: initial; display: inline
        !important; float: none;"><span style="color: rgb(64, 64, 64);
          font-family: sans-serif; font-size: medium; font-style:
          normal; font-variant-ligatures: normal; font-variant-caps:
          normal; font-weight: 400; letter-spacing: normal; orphans: 2;
          text-align: start; text-indent: 0px; text-transform: none;
          white-space: normal; widows: 2; word-spacing: 0px;
          -webkit-text-stroke-width: 0px; background-color: rgb(248,
          248, 248); text-decoration-style: initial;
          text-decoration-color: initial; display: inline !important;
          float: none;">Although, long is 8 bytes and size_t is 4 bytes</span></span></p>
    <p><span style="color: rgb(64, 64, 64); font-family: sans-serif;
        font-size: medium; font-style: normal; font-variant-ligatures:
        normal; font-variant-caps: normal; font-weight: 400;
        letter-spacing: normal; orphans: 2; text-align: start;
        text-indent: 0px; text-transform: none; white-space: normal;
        widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px;
        background-color: rgb(248, 248, 248); text-decoration-style:
        initial; text-decoration-color: initial; display: inline
        !important; float: none;"><span style="color: rgb(64, 64, 64);
          font-family: sans-serif; font-size: medium; font-style:
          normal; font-variant-ligatures: normal; font-variant-caps:
          normal; font-weight: 400; letter-spacing: normal; orphans: 2;
          text-align: start; text-indent: 0px; text-transform: none;
          white-space: normal; widows: 2; word-spacing: 0px;
          -webkit-text-stroke-width: 0px; background-color: rgb(248,
          248, 248); text-decoration-style: initial;
          text-decoration-color: initial; display: inline !important;
          float: none;">Will be there any issue if i use 8 bytes long in
          place of 4 byte datatype?<br>
        </span></span></p>
    <br>
    <div class="moz-cite-prefix">On 06/10/2018 08:48 PM, T Lee Davidson
      wrote:<br>
    </div>
    <blockquote type="cite"
      cite="mid:a37856da-14e2-856a-3419-206877c0e14e@gmail.com">
      <pre wrap="">On 06/10/2018 01:42 PM, Jussi Lahtinen wrote:
</pre>
      <blockquote type="cite">
        <pre wrap="">    An integer type is obviously not wide enough.


It is. You need 32 bits and Gambas integer is 32 bits. Gambas just interprets/displays the most significant bit as sign bit.


</pre>
      </blockquote>
      <pre wrap="">
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
highest bit is reserved for the sign bit.

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?


</pre>
    </blockquote>
    <br>
  </body>
</html>