[Gambas-user] Possible error when doing math on bytes

Benoit Minisini benoit.minisini at gambas-basic.org
Wed Jan 11 08:09:41 CET 2023


Le 10/01/2023 à 23:21, Brian G a écrit :
> 
>> Le 10/01/2023 à 22:48, Brian G a écrit :
>>>
>>> With latest build, both 20.3 and 21.1 work in the same way, looks good.
>>>
>>> Should pointers not behave in the same way?
>>
>> I don't understand the question...
>>
>> --
>> Benoît Minisini.
> 
> Pointers are also unsigned values with fixed boundaries, source of many errors
> dec/inc  or add/subtract above or below boundaries should perhaps create an overflow as well
> 
> What do you thing about including that check?
> 
> Brian
> 

Mmm... Logically yes, but I'm not sure that pointers are considered as 
integers by the overflow detection functions. I will check.

-- 
Benoît Minisini.



More information about the User mailing list