diff --git a/src/flint/_flint.pxd b/src/flint/_flint.pxd index d8eb3e16..c31026c8 100644 --- a/src/flint/_flint.pxd +++ b/src/flint/_flint.pxd @@ -969,8 +969,8 @@ cdef extern from "arb.h": void arb_get_ubound_arf(arf_t u, const arb_t z, long prec) void arb_get_lbound_arf(arf_t u, const arb_t z, long prec) void arb_nonnegative_part(arb_t u, const arb_t x) - long arb_rel_error_bits(const arb_t x) - long arb_rel_accuracy_bits(const arb_t x) + slong arb_rel_error_bits(const arb_t x) + slong arb_rel_accuracy_bits(const arb_t x) long arb_bits(const arb_t x) void arb_randtest_exact(arb_t x, flint_rand_t state, long prec, long mag_bits) void arb_randtest_wide(arb_t x, flint_rand_t state, long prec, long mag_bits) diff --git a/src/flint/functions.pyx b/src/flint/functions.pyx index fd19bd4f..86057f3d 100644 --- a/src/flint/functions.pyx +++ b/src/flint/functions.pyx @@ -24,8 +24,8 @@ cdef goodstr(x): return x.str(radius=False) raise TypeError("must have arb or acb") -def good(func, long prec=0, long maxprec=0, long dps=0, - long maxdps=0, long padding=10, bint verbose=False, bint show=False, bint parts=True, metric=None): +def good(func, slong prec=0, slong maxprec=0, slong dps=0, + slong maxdps=0, slong padding=10, bint verbose=False, bint show=False, bint parts=True, metric=None): """ Evaluates *func*, automatically increasing the precision to get a result accurate to the current working precision (or the @@ -53,7 +53,7 @@ def good(func, long prec=0, long maxprec=0, long dps=0, """ - cdef long orig, morebits, acc + cdef slong orig, morebits, acc if dps > 0: prec = dps_to_prec(dps)