unsigned/signed int comparison warnings fixed