Avoid integer overflow in negative binomial