Skip to content

Commit e76c517

Browse files
committed
use old_nfbasis for 3-arguments version of nfbasis
1 parent e2ab25d commit e76c517

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

cypari2/gen.pyx

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -134,11 +134,14 @@ cdef extern from *:
134134
#endif
135135
136136
#if PARI_VERSION_CODE >= PARI_VERSION(2, 12, 0)
137-
#define nfbasis(x, yptr, p) nfbasis(mkvec2(x, p), yptr)
137+
#define old_nfbasis(x, yptr, p) nfbasis(mkvec2(x, p), yptr)
138+
#else
139+
#define old_nfbasis nfbasis
138140
#endif
139141
"""
140142
GEN new_nf_nfzk(GEN nf, GEN rnfeq)
141143
GEN new_nfeltup(GEN nf, GEN x, GEN zknf)
144+
GEN old_nfbasis(GEN x, GEN * y, GEN p)
142145

143146

144147
cdef class Gen(Gen_base):
@@ -3692,7 +3695,7 @@ cdef class Gen(Gen_base):
36923695
else:
36933696
g0 = NULL
36943697
sig_on()
3695-
return new_gen(nfbasis(self.g, NULL, g0))
3698+
return new_gen(old_nfbasis(self.g, NULL, g0))
36963699

36973700
def nfbasis_d(self, long flag=0, fa=None):
36983701
"""
@@ -3726,7 +3729,7 @@ cdef class Gen(Gen_base):
37263729
else:
37273730
g0 = NULL
37283731
sig_on()
3729-
ans = nfbasis(self.g, &disc, g0)
3732+
ans = old_nfbasis(self.g, &disc, g0)
37303733
return new_gens2(ans, disc)
37313734

37323735
def nfbasistoalg_lift(nf, x):

0 commit comments

Comments
 (0)