Fix unsigned-signed int comparison warning