Fixing warnings by making variables unsigned ints.