No change in logic, but wrap the LT operator and the && in parentheses to silence the compiler warning.