def _intc_overflow(x, msg=None):
 if (x > iinfo(intc).max):
  if (msg is None):
   msg = ('%r cannot fit into an intc' % x)
  raise OverflowError(msg)
 return intc(x)

def _intc_overflow ( x , msg = None ) : if ( x > iinfo ( intc ) . max ) : if ( msg is None ) : msg = ( '%r cannot fit into an intc' % x ) raise OverflowError ( msg ) return intc ( x )
cast the value to an intc and raise an overflowerror if the value cannot fit .