3 comments

[ 1.9 ms ] story [ 20.2 ms ] thread
If you want signed integer overflow to be defined, use the "-fwrapv" flag.
I really like the idea of decompiling ones' own code with Ghidra to see different ways the logic can be represented. Using `-Wextra` adds a warning about the signed\unsigned comparison, but Ghidra's `(ulong)(uint)` casts make that a bit clearer.