Fix warning of int comparision to unsigned