in bijection-core/src/main/scala/com/twitter/bijection/ModDivInjection.scala [66:74]
override def invert(moddiv: (Long, Long)) = {
val (mod, div) = moddiv
val res = div * modulus + mod
if (
mod >= 0 && mod < modulus && div <= maxDiv && div >= minDiv &&
((res >= 0) == (div >= 0))
) Success(res)
else InversionFailure.failedAttempt(moddiv)
}