summaryrefslogtreecommitdiff
path: root/src/math/hypot.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/math/hypot.c')
-rw-r--r--src/math/hypot.c4
1 files changed, 2 insertions, 2 deletions
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;
}