Comment by leni536
4 years ago
In gcc you can use the -ftrapv or -fwrapv compiler options to get defined signed integer overflow arithmetic.
4 years ago
In gcc you can use the -ftrapv or -fwrapv compiler options to get defined signed integer overflow arithmetic.
These also work on Clang.