use SIZE_MAX instead of (size_t)-1

(0) -30 -10 -1 +1 +10 tip

mercurial