branches: 1.8.2; 1.8.6; 1.8.8; 1.8.16;using 2 casts to fix an unsigned-signed comparison is a sign that this itis done incorrectly. The RHS is guaranteed positive at this point so castit to unsigned to match the LHS.