summaryrefslogtreecommitdiffstats
path: root/lib/muldf3.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/muldf3.c')
-rw-r--r--lib/muldf3.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/muldf3.c b/lib/muldf3.c
index 86d72d8..c38edba 100644
--- a/lib/muldf3.c
+++ b/lib/muldf3.c
@@ -15,7 +15,7 @@
#define DOUBLE_PRECISION
#include "fp_lib.h"
-ARM_EABI_FNALIAS(dmul, muldf3);
+ARM_EABI_FNALIAS(dmul, muldf3)
COMPILER_RT_ABI fp_t
__muldf3(fp_t a, fp_t b) {
@@ -96,7 +96,7 @@ __muldf3(fp_t a, fp_t b) {
// a zero of the appropriate sign. Mathematically there is no need to
// handle this case separately, but we make it a special case to
// simplify the shift logic.
- const int shift = 1 - productExponent;
+ const unsigned int shift = 1U - (unsigned int)productExponent;
if (shift >= typeWidth) return fromRep(productSign);
// Otherwise, shift the significand of the result so that the round
OpenPOWER on IntegriCloud