Blended solution, catch overflow for signed int and
handle unsigned int.