From 018f9df4440e1d5640f9d50dc08bee9bbc40b3b6 Mon Sep 17 00:00:00 2001 From: Szabolcs Nagy Date: Mon, 9 Feb 2015 01:16:35 +0100 Subject: [PATCH] math: fix fmodl for IEEE binary128 This trivial copy-paste bug went unnoticed due to lack of testing. No currently supported target archs are affected. --- src/math/fmodl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/math/fmodl.c b/src/math/fmodl.c index 54af6a3f..9f5b8739 100644 --- a/src/math/fmodl.c +++ b/src/math/fmodl.c @@ -63,7 +63,7 @@ long double fmodl(long double x, long double y) xhi = (ux.i2.hi & -1ULL>>16) | 1ULL<<48; yhi = (uy.i2.hi & -1ULL>>16) | 1ULL<<48; xlo = ux.i2.lo; - ylo = ux.i2.lo; + ylo = uy.i2.lo; for (; ex > ey; ex--) { hi = xhi - yhi; lo = xlo - ylo; -- 2.25.1