From 4fc2034f76492a5f0da1743e6caebcbe6a4aed9c Mon Sep 17 00:00:00 2001 From: Antonio Rojas Date: Wed, 30 Oct 2024 21:53:48 +0100 Subject: [PATCH] Replace prec_pari_to_bits usage MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Gonzalo TornarĂ­a --- src/sage/schemes/elliptic_curves/ell_point.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/sage/schemes/elliptic_curves/ell_point.py b/src/sage/schemes/elliptic_curves/ell_point.py index 34615bb46b8..a03439023ca 100755 --- a/src/sage/schemes/elliptic_curves/ell_point.py +++ b/src/sage/schemes/elliptic_curves/ell_point.py @@ -3705,7 +3705,7 @@ def elliptic_logarithm(self, embedding=None, precision=100, E_pari = E_work.pari_curve() log_pari = E_pari.ellpointtoz(pt_pari, precision=working_prec) - while prec_pari_to_bits(log_pari.precision()) < precision: + while log_pari.bitprecision() < precision: # result is not precise enough, re-compute with double # precision. if the base field is not QQ, this # requires modifying the precision of the embedding,