Fixed compile warnings related to unsigned ints