| ▲ | randomblock1 4 hours ago | |
I thought most people used the explicit version:
You can also do something like:
to not have to use i-1. I believe the compiler optimizes that out anyway to be identical. | ||
| ▲ | seeknotfind 4 hours ago | parent [-] | |
Yes, this is the best answer. This also works with `-fsanitize=unsigned-integer-overflow`. | ||