Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
check for out-of-range bases in ndigits(::BigInt, b)
GMP doesn't sanitize itself the input (there is an ASSERT in the low-level MPN_SIZEINBASE function, which is probably disabled in the build). A wrong base may crash the system. Also, use the documented types for mpz_sizeinbase in ccall.
- Loading branch information