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

Brian G brian at westwoodsvcs.com
Tue Jan 10 23:21:05 CET 2023


> 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


More information about the User mailing list