Skip to content
This repository was archived by the owner on Feb 1, 2023. It is now read-only.

Commit 14fd292

Browse files
committed
prevent segfaults with flint 2.6
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
1 parent f976c52 commit 14fd292

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/sage/schemes/hyperelliptic_curves/monsky_washnitzer.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1876,9 +1876,9 @@ def __init__(self, Q, R=None, invert_y=True):
18761876
if not hasattr(self, '_curve'):
18771877
if self._Q.degree() == 3:
18781878
ainvs = [0, self._Q[2], 0, self._Q[1], self._Q[0]]
1879-
self._curve = EllipticCurve(ainvs)
1879+
self._curve = EllipticCurve(ainvs, check_squarefree=R.is_field())
18801880
else:
1881-
self._curve = HyperellipticCurve(self._Q)
1881+
self._curve = HyperellipticCurve(self._Q, check_squarefree=R.is_field())
18821882

18831883
else:
18841884
raise NotImplementedError("Must be an elliptic curve or polynomial "

0 commit comments

Comments
 (0)