summaryrefslogtreecommitdiff
path: root/src/zeta_ui.c
diff options
context:
space:
mode:
authorvlefevre <vlefevre@280ebfd0-de03-0410-8827-d642c229c3f4>2011-01-31 01:53:11 +0000
committervlefevre <vlefevre@280ebfd0-de03-0410-8827-d642c229c3f4>2011-01-31 01:53:11 +0000
commitb94f3a050a76800f160e279523755cdc9cb6f5ca (patch)
tree3fb3dd8e1717827a38e512faf3057c1b16dea029 /src/zeta_ui.c
parenta4ccad703e8502de38715101fd2e420d88738170 (diff)
downloadmpfr-b94f3a050a76800f160e279523755cdc9cb6f5ca.tar.gz
[src/zeta_ui.c,tests/tzeta_ui.c] Patch from Patrick PĂ©lissier for
the division-by-zero support in mpfr_zeta_ui (and test): git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@7443 280ebfd0-de03-0410-8827-d642c229c3f4
Diffstat (limited to 'src/zeta_ui.c')
-rw-r--r--src/zeta_ui.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/zeta_ui.c b/src/zeta_ui.c
index 8e4211785..28b1fc0ff 100644
--- a/src/zeta_ui.c
+++ b/src/zeta_ui.c
@@ -39,6 +39,7 @@ mpfr_zeta_ui (mpfr_ptr z, unsigned long m, mpfr_rnd_t r)
{
MPFR_SET_INF (z);
MPFR_SET_POS (z);
+ mpfr_set_divby0 ();
return 0;
}
else /* m >= 2 */