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

Brian G brian at westwoodsvcs.com
Tue Jan 10 22:04:24 CET 2023

>>> I just compiled Gambas on an Ubuntu 20.04.5 LTS (the system Mint 20.3 is
>>> based on), and there is no support for detecting overflow in its version
>>> of gcc, and indeed overflow is not detected.
>>> So in which code exactly do you have an overflow error?
>> I fixed overflow detection support, it is now enabled when gcc version
>> is at least 8, and so it is now enabled on Ubuntu 20.04.5 LTS and Mint 20.3.
>> Regards,
>> --
>> Benoît Minisini.

Perhaps it would be better to generate a warning when the overflow is not supported rather than
a hard error.
This would allow to add the system.ignoreoverflow = true/false and not have the compile fail from system to system.

What do you think?


More information about the User mailing list