Changed int to size_t in downshift word.

To prevent an error by comparing ints to unsigned ints