Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix division by zero in
monomials_deflate.c
.
The documentation for `fmpz_mpoly_deflate` (and similar) states > If any `stride[v]` is zero, the corresponding numerator `e - shift[v]` is assumed to > be zero, and the quotient is defined as zero. This allows the function to undo the > operation performed by `fmpz_mpoly_inflate()` when possible. The previous comment and if-statement did not align meaning that the denominator was not being checked leading to divisions by zero when `stride[v]` is 0.
- Loading branch information