<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<p>so your advice is to use Integer not Long.</p>
<p>is this right?<br>
</p>
<br>
<div class="moz-cite-prefix">On 06/10/2018 09:10 PM, Jussi Lahtinen
wrote:<br>
</div>
<blockquote type="cite"
cite="mid:CAFJMe7SuQouigUmQ1d8CLdomrxeAo32dBv0_obLfNpJKHAirrQ@mail.gmail.com">
<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
class="">
</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="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>