[Gambas-user] unsigned int datatype for external function
Jussi Lahtinen
jussi.lahtinen at gmail.com
Sun Jun 10 19:42:20 CEST 2018
> 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.
> I don't know why Jussi said that a long type won't help you. A 'long' is
> 63+1 bits wide; certainly wide enough to hold a 32-bit
> unsigned integer.
>
Yes, it does hold the value, but you are giving the library more than it
can take.
Jussi
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.gambas-basic.org/pipermail/user/attachments/20180610/f11b5038/attachment.html>
More information about the User
mailing list