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

Commit

Permalink
real_arb: lone (and misplaced) sig_on()
Browse files Browse the repository at this point in the history
  • Loading branch information
mezzarobba committed Oct 16, 2015
1 parent 11649d7 commit 638607e
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/sage/rings/real_arb.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -191,18 +191,17 @@ cdef void mpfi_to_arb(arb_t target, const mpfi_t source, const long precision):
cdef mpfr_t left
cdef mpfr_t right

if _do_sig(precision): sig_on()

mpfr_init2(left, precision)
mpfr_init2(right, precision)

if _do_sig(precision): sig_on()
mpfi_get_left(left, source)
mpfi_get_right(right, source)

arb_set_interval_mpfr(target,
left,
right,
precision)
if _do_sig(precision): sig_off()

mpfr_clear(left)
mpfr_clear(right)
Expand Down

0 comments on commit 638607e

Please sign in to comment.