Skip to content
This repository has been archived by the owner on Jan 30, 2023. It is now read-only.

Commit

Permalink
prevent segfaults with flint 2.6
Browse files Browse the repository at this point in the history
this allows running Sage with system Flint 2.6.x - carved out of #29719

It does not fix all the doctests - but these
remaining fixes are on #29719
  • Loading branch information
dimpase committed Oct 20, 2020
1 parent f976c52 commit 14fd292
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/sage/schemes/hyperelliptic_curves/monsky_washnitzer.py
Original file line number Diff line number Diff line change
Expand Up @@ -1876,9 +1876,9 @@ def __init__(self, Q, R=None, invert_y=True):
if not hasattr(self, '_curve'):
if self._Q.degree() == 3:
ainvs = [0, self._Q[2], 0, self._Q[1], self._Q[0]]
self._curve = EllipticCurve(ainvs)
self._curve = EllipticCurve(ainvs, check_squarefree=R.is_field())
else:
self._curve = HyperellipticCurve(self._Q)
self._curve = HyperellipticCurve(self._Q, check_squarefree=R.is_field())

else:
raise NotImplementedError("Must be an elliptic curve or polynomial "
Expand Down

0 comments on commit 14fd292

Please sign in to comment.