newLISP Fan Club

Forum => newLISP newS => Topic started by: iacore on July 18, 2023, 08:29:55 PM

Title: int64 addition underflow/overflow
Post by: iacore on July 18, 2023, 08:29:55 PM
On 64-bit systems, try the following in REPL.

(+ -9223372036854775808 -1)

(+ 9223372036854775807 1)

Luckly, this is caught with UBSan.

You can see the details of this bug in the README of https://codeberg.org/iacore/newerlisp


P.S. does anyone know an existing fork of newLISP?
Title: Re: int64 addition underflow/overflow
Post by: iacore on July 18, 2023, 11:20:42 PM
This seems to be how newLISP works