summaryrefslogtreecommitdiffstats
path: root/compiler-rt/lib/mulsf3.c
diff options
context:
space:
mode:
authorJoerg Sonnenberger <joerg@bec.de>2012-06-18 18:51:13 +0000
committerJoerg Sonnenberger <joerg@bec.de>2012-06-18 18:51:13 +0000
commit8524f0ba2f71834e6b8fc885e3240f4e5c08ae2c (patch)
tree08786a9749befc657f2e3d3e817e8a5faa35698c /compiler-rt/lib/mulsf3.c
parent7b33767275bb44d1c42c30235b89131ff1619552 (diff)
downloadbcm5719-llvm-8524f0ba2f71834e6b8fc885e3240f4e5c08ae2c.tar.gz
bcm5719-llvm-8524f0ba2f71834e6b8fc885e3240f4e5c08ae2c.zip
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. llvm-svn: 158669
Diffstat (limited to 'compiler-rt/lib/mulsf3.c')
-rw-r--r--compiler-rt/lib/mulsf3.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler-rt/lib/mulsf3.c b/compiler-rt/lib/mulsf3.c
index fce2fd4fb2a..fc17f4efdc8 100644
--- a/compiler-rt/lib/mulsf3.c
+++ b/compiler-rt/lib/mulsf3.c
@@ -92,7 +92,7 @@ __mulsf3(fp_t a, fp_t b) {
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 {
OpenPOWER on IntegriCloud