1
0
mirror of https://github.com/janet-lang/janet synced 2024-12-27 17:00:27 +00:00
janet/src
Techcable 0adb13ed71
inttypes.c: Avoid signed integer overflow (U.B.)
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.....
2022-08-29 18:38:51 -07:00
..
boot Allow adding name to short-fns. 2022-08-18 14:33:59 -05:00
conf Update CHANGELOG and version numbers. 2022-08-26 13:15:30 -05:00
core inttypes.c: Avoid signed integer overflow (U.B.) 2022-08-29 18:38:51 -07:00
include Add option to marshal values without cycle detection. 2022-08-26 11:20:02 -05:00
mainclient Fix build warnings on Linux GCC version 12.1.0 x64 2022-07-20 08:04:03 -05:00