@@ -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
144147cdef 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