projects
/
musl
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
fix broken thread list unlocking after fork
[musl]
/
src
/
math
/
hypot.c
diff --git
a/src/math/hypot.c
b/src/math/hypot.c
index
29ec6a4
..
6071bf1
100644
(file)
--- 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;
}