def _intc_overflow(x, msg=None):
    """Cast the value to an intc and raise an OverflowError if the value
    cannot fit.
    """
    if x > iinfo(intc).max:
        if msg is None:
            msg = '%r cannot fit into an intc' % x
        raise OverflowError(msg)
    return intc(x)
dataset/ETHPy150Open scipy/scipy/scipy/interpolate/fitpack.py/_intc_overflow/original