fixed int/unsigned int comparison warnings