The old code produced a couple of these warnings...
src/string.cpp:95:11: warning: comparison of constant -2147483648 with expression of type 'long' (range [-2147483648, 2147483647]) is always false [-Wtautological-constant-out-of-range-compare] if (r < numeric_limits<int>::min() || numeric_limits<int>::max() < r) ~ ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~ src/string.cpp:95:11: note: place two sets of parentheses around the constant to silence this warning if (r < numeric_limits<int>::min() || numeric_limits<int>::max() < r)
This patch follows the advice of the note, as the comparison is reasonable on many 64-bit systems.