fixed unsigned to signed int comparisons