cppcheck: minor comparision warning