Fixed code comparing int to unsigned int (benign)