Skip to content

Commit 284cadb

Browse files
committed
Fix nfbasis for newer PARI versions
1 parent 5ed6cf2 commit 284cadb

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

cypari2/gen.pyx

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ cdef inline bint have_ellwp_flag1_bug():
111111
return ellwp_flag1_bug
112112

113113

114-
# Compatibility wrapper for nf_nfzk and nfeltup
114+
# Compatibility wrappers
115115
cdef extern from *:
116116
"""
117117
#if PARI_VERSION_CODE >= PARI_VERSION(2, 10, 1)
@@ -132,6 +132,10 @@ cdef extern from *:
132132
return nfeltup(nf, x, zknf, czknf);
133133
}
134134
#endif
135+
136+
#if PARI_VERSION_CODE >= PARI_VERSION(2, 12, 0)
137+
#define nfbasis(x, yptr, p) nfbasis(mkvec2(x, p), yptr)
138+
#endif
135139
"""
136140
GEN new_nf_nfzk(GEN nf, GEN rnfeq)
137141
GEN new_nfeltup(GEN nf, GEN x, GEN zknf)

0 commit comments

Comments
 (0)