Skip to content
This repository has been archived by the owner on Jan 30, 2023. It is now read-only.

Commit

Permalink
Trac #17811: use int ... except -1: instead of void ... except *
Browse files Browse the repository at this point in the history
  • Loading branch information
cheuberg committed Feb 20, 2015
1 parent 4215322 commit 33ee7f2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/sage/rings/real_arb.pxd
Expand Up @@ -5,7 +5,7 @@ from sage.structure.parent cimport Parent
from sage.structure.element cimport Element

cdef void mpfi_to_arb(arb_t target, const mpfi_t source, const long precision)
cdef void arb_to_mpfi(mpfi_t target, arb_t source, const long precision) except *
cdef int arb_to_mpfi(mpfi_t target, arb_t source, const long precision) except -1

cdef class RealBall(Element):
cdef arb_t value
Expand Down
2 changes: 1 addition & 1 deletion src/sage/rings/real_arb.pyx
Expand Up @@ -129,7 +129,7 @@ cdef void mpfi_to_arb(arb_t target, const mpfi_t source, const long precision):
mpfr_clear(left)
mpfr_clear(right)

cdef void arb_to_mpfi(mpfi_t target, arb_t source, const long precision) except *:
cdef int arb_to_mpfi(mpfi_t target, arb_t source, const long precision) except -1:
"""
Convert an Arb ball to an MPFI interval.
Expand Down

0 comments on commit 33ee7f2

Please sign in to comment.