fix in vs unsigned int comparison warning