From da93d21475878725c9e0cb2b6e650bd8d3628435 Mon Sep 17 00:00:00 2001 From: Luis Machado Date: Wed, 10 Nov 2010 16:15:05 -0500 Subject: Fix comparison in sqrtl for IBM long double 128. --- sysdeps/ieee754/ldbl-128ibm/e_sqrtl.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'sysdeps/ieee754/ldbl-128ibm/e_sqrtl.c') diff --git a/sysdeps/ieee754/ldbl-128ibm/e_sqrtl.c b/sysdeps/ieee754/ldbl-128ibm/e_sqrtl.c index 1f533ca..fe6bb55 100644 --- a/sysdeps/ieee754/ldbl-128ibm/e_sqrtl.c +++ b/sysdeps/ieee754/ldbl-128ibm/e_sqrtl.c @@ -73,9 +73,9 @@ long double __ieee754_sqrtl(long double x) m = ((a.i[2] >> 20) & 0x7ff) - 54; } m += n; - if (m > 0) + if ((int) m > 0) a.i[2] = (a.i[2] & 0x800fffff) | (m << 20); - else if (m <= -54) { + else if ((int) m <= -54) { a.i[2] &= 0x80000000; a.i[3] = 0; } else { -- cgit v1.1