And also simplify it to remove the check for small int. This can be done because this function is only ever called if the argument is not a small int.