[Gambas-user] Overflow error

Gianluigi bagonergi at gmail.com
Wed Mar 13 23:53:50 CET 2019


Il giorno mer 13 mar 2019 alle ore 23:34 Tobias Boege <taboege at gmail.com>
ha scritto:

> On Wed, 13 Mar 2019, Gianluigi wrote:
> > A friend of ours of the Italian forum gets the Overflow bus error (7) [0]
> > in a program with many calculations.
> > What is the probable cause, programming error or hardware error?
> >
>
> In the interpreter, I've found two places from where this error is raised
> (there might be more):
>
>   1. When a Float or Long is converted to a Single but the Float/Long
>      is too big: Print CSingle(2 ^ 500)
>
>   2. When Date arithmetic produces a value outside of 32 bits:
>      Print DateDiff(CFloat(2 ^ 50), CFloat(1), gb.Second)
>
> The JIT compiler header adds another source of overflow checks.
> Without the source code -- who can know?
>
> Regards,
> Tobi
>

Hi Tobias,
I believe that your explanations are more than enough.
Thank you very much, I'm going to report.

Regards
Gianluigi
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.gambas-basic.org/pipermail/user/attachments/20190313/4740242e/attachment.html>


More information about the User mailing list