Skip to content

Commit 6219368

Browse files
fix warnings
1 parent 2e0fceb commit 6219368

2 files changed

Lines changed: 6 additions & 11 deletions

File tree

src/flint/_flint.pxd

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@ cdef extern from "gmp.h":
2323
ctypedef unsigned long mp_limb_t
2424
ctypedef long mp_size_t
2525
ctypedef long mp_exp_t
26-
ctypedef unsigned long mp_limb_t
2726
ctypedef mp_limb_t* mp_ptr
2827
ctypedef mp_limb_t* mp_srcptr
2928
ctypedef unsigned long mp_bitcnt_t

src/flint/pyflint.pyx

Lines changed: 6 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,6 @@ cdef flint_rand_t global_random_state
1010
flint_randinit(global_random_state)
1111

1212
cdef extern from "Python.h":
13-
ctypedef void PyObject
14-
ctypedef void PyTypeObject
15-
ctypedef long Py_ssize_t
1613
int PyObject_TypeCheck(object, PyTypeObject*)
1714
int PyInt_Check(PyObject *o)
1815
PyObject* PyInt_FromLong(long ival)
@@ -67,12 +64,12 @@ cdef long dps_to_prec(n):
6764
return max(1, int(round((int(n)+1)*3.3219280948873626)))
6865

6966
cdef class FlintContext:
70-
cpdef public bint pretty
71-
cpdef public long _prec
72-
cpdef public long _dps
73-
cpdef arf_rnd_t rnd
74-
cpdef public bint unicode
75-
cpdef public long _cap
67+
cdef public bint pretty
68+
cdef public long _prec
69+
cdef public long _dps
70+
cdef arf_rnd_t rnd
71+
cdef public bint unicode
72+
cdef public long _cap
7673

7774
def __init__(self):
7875
self.default()
@@ -296,7 +293,6 @@ cdef class flint_series(flint_elem):
296293
return list(self)
297294

298295

299-
300296
include "fmpz.pyx"
301297
include "fmpz_poly.pyx"
302298
include "fmpz_mpoly.pyx"

0 commit comments

Comments
 (0)