diff options
| -rw-r--r-- | libfixmath/fix16_sqrt.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libfixmath/fix16_sqrt.c b/libfixmath/fix16_sqrt.c index 71b9f0c..5559b81 100644 --- a/libfixmath/fix16_sqrt.c +++ b/libfixmath/fix16_sqrt.c @@ -80,5 +80,5 @@ fix16_t fix16_sqrt(fix16_t inValue) }
#endif
- return (neg ? -(fix16_t)result : result);
+ return (neg ? -(fix16_t)result : (fix16_t)result);
}
|
