Fixed issue with unsigned ints (not converting numbers larger than
signed int max)