From f7fd80054d9fb1620b6c65db276325f35d86f7ee Mon Sep 17 00:00:00 2001 From: Akira Kakuto Date: Mon, 7 Mar 2016 13:18:57 +0000 Subject: mpfr 3.1.4 git-svn-id: svn://tug.org/texlive/trunk@39960 c570f23f-e606-0410-a88d-b1316a301751 --- Build/source/libs/mpfr/mpfr-src/src/ui_div.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'Build/source/libs/mpfr/mpfr-src/src/ui_div.c') diff --git a/Build/source/libs/mpfr/mpfr-src/src/ui_div.c b/Build/source/libs/mpfr/mpfr-src/src/ui_div.c index ac1efb3b984..dd190300d44 100644 --- a/Build/source/libs/mpfr/mpfr-src/src/ui_div.c +++ b/Build/source/libs/mpfr/mpfr-src/src/ui_div.c @@ -1,8 +1,8 @@ /* mpfr_ui_div -- divide a machine integer by a floating-point number mpfr_si_div -- divide a machine number by a floating-point number -Copyright 2000-2015 Free Software Foundation, Inc. -Contributed by the AriC and Caramel projects, INRIA. +Copyright 2000-2016 Free Software Foundation, Inc. +Contributed by the AriC and Caramba projects, INRIA. This file is part of the GNU MPFR Library. @@ -106,7 +106,8 @@ mpfr_si_div (mpfr_ptr y, long int u, mpfr_srcptr x, mpfr_rnd_t rnd_mode) res = mpfr_ui_div (y, u, x, rnd_mode); else { - res = -mpfr_ui_div (y, -u, x, MPFR_INVERT_RND(rnd_mode)); + res = - mpfr_ui_div (y, - (unsigned long) u, x, + MPFR_INVERT_RND(rnd_mode)); MPFR_CHANGE_SIGN (y); } return res; -- cgit v1.2.3