Fix compiler warning - compare int, unsigned int