Resolve clang warnings (sign compare).