Prevent signed overflow for signed integer division/modulo.