Clean up GCC signed integer overflow warnings "warning: iteration 3u invokes undefined behavior [-Waggressive-loop-optimizations]"