mirror of
https://github.com/janet-lang/janet
synced 2025-04-27 13:13:14 +00:00

In C, signed arithmetic overflow is undefined behvior but unsigned arithmetic overflow is twos complement Unconditionally switch to unsigned arithmetic internally for +, -, * This will not affect the result thanks to twos complement awesomeness. I don't think this will be an issue in these functions, but it has a history of causing bugs.....