X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=src%2Fmath%2Fhypot.c;h=6071bf1e284f376f417dbab5bc306964a7491f3f;hb=2e5fff43dd7fc808197744c67cca7908ac19bb4f;hp=29ec6a476d1bf6787b393c0f2a498ea338b583a6;hpb=c2a0dfea629617a39af2f59bd400e1a3595d0783;p=musl diff --git a/src/math/hypot.c b/src/math/hypot.c index 29ec6a47..6071bf1e 100644 --- a/src/math/hypot.c +++ b/src/math/hypot.c @@ -12,10 +12,10 @@ static void sq(double_t *hi, double_t *lo, double x) { double_t xh, xl, xc; - xc = x*SPLIT; + xc = (double_t)x*SPLIT; xh = x - xc + xc; xl = x - xh; - *hi = x*x; + *hi = (double_t)x*x; *lo = xh*xh - *hi + 2*xh*xl + xl*xl; }