summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--apps/plugins/lib/fixedpoint.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/plugins/lib/fixedpoint.c b/apps/plugins/lib/fixedpoint.c
index 9c34c2a0b7..56597c1364 100644
--- a/apps/plugins/lib/fixedpoint.c
+++ b/apps/plugins/lib/fixedpoint.c
@@ -131,7 +131,7 @@ long fsqrt(long a, unsigned int fracbits)
131 const unsigned iterations = 4; 131 const unsigned iterations = 4;
132 132
133 for (n = 0; n < iterations; ++n) 133 for (n = 0; n < iterations; ++n)
134 b = (b + DIV64(a, b, fracbits))/2; 134 b = (b + (long)(((long long)(a) << fracbits)/b))/2;
135 135
136 return b; 136 return b;
137} 137}