Declare some variables unsigned to avoid signed vs unsigned mismatches.
This exploits the relative order of the arguments and/or checks already
made in the functions.
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@158669 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/lib/mulsf3.c b/lib/mulsf3.c
index fce2fd4..fc17f4e 100644
--- a/lib/mulsf3.c
+++ b/lib/mulsf3.c
@@ -92,7 +92,7 @@
if (productExponent <= 0) {
// Result is denormal before rounding, the exponent is zero and we
// need to shift the significand.
- wideRightShiftWithSticky(&productHi, &productLo, 1 - productExponent);
+ wideRightShiftWithSticky(&productHi, &productLo, 1U - (unsigned)productExponent);
}
else {