summaryrefslogtreecommitdiff
path: root/src/urandom.c
diff options
context:
space:
mode:
authorvlefevre <vlefevre@280ebfd0-de03-0410-8827-d642c229c3f4>2017-08-21 13:08:47 +0000
committervlefevre <vlefevre@280ebfd0-de03-0410-8827-d642c229c3f4>2017-08-21 13:08:47 +0000
commitfe1a990b8996d63f30800249fd5d613a543e2f74 (patch)
treefda220934a385bf51ac30a073679f524a2afeaa7 /src/urandom.c
parent97abbda37a06f409bd386d0657e4b2ce11b0b9f7 (diff)
downloadmpfr-fe1a990b8996d63f30800249fd5d613a543e2f74.tar.gz
[src/urandom.c] Useless parentheses; reformatting.
git-svn-id: svn://scm.gforge.inria.fr/svn/mpfr/trunk@11634 280ebfd0-de03-0410-8827-d642c229c3f4
Diffstat (limited to 'src/urandom.c')
-rw-r--r--src/urandom.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/urandom.c b/src/urandom.c
index b7574ad10..54d38132e 100644
--- a/src/urandom.c
+++ b/src/urandom.c
@@ -156,7 +156,8 @@ mpfr_urandom (mpfr_ptr rop, gmp_randstate_t rstate, mpfr_rnd_t rnd_mode)
{
/* since we expect a number in [0,1], for RNDN when emin > 1
we should return 0 */
- inex = mpfr_set_ui_2exp (rop, 1, ((emin > 1) ? 1 : emin) - 1, rnd_mode);
+ inex = mpfr_set_ui_2exp (rop, 1, (emin > 1 ? 1 : emin) - 1,
+ rnd_mode);
if (inex == 0)
inex = +1;
}