Join Nostr
2026-10-17 12:36:48 UTC
in reply to

GNU/翠星石 on Nostr: Signed integer overflow is undefined behavior. GCC can make signed integer overflow ...

Signed integer overflow is undefined behavior.

GCC can make signed integer overflow defined, but that causes a slowdown.

Really, the root cause of the bug was making the counter a signed variable, as it doesn't really make sense for a counter to have negative values.