Refine the definition of integer inverse to cover borderline cases.