about summary refs log tree commit diff
path: root/src/math/fmodl.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/math/fmodl.c')
-rw-r--r--src/math/fmodl.c2
1 files changed, 1 insertions, 1 deletions
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;