summaryrefslogtreecommitdiff
path: root/lib/addsf3.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
commit0499b8433538a1913ca955566cd34368752bf7af (patch)
tree3333947aeb2f0f27821873721c173ba898f43588 /lib/addsf3.c
parent8cd0df78c317106be477c5496f481af0563a5208 (diff)
downloadcompiler-rt-0499b8433538a1913ca955566cd34368752bf7af.tar.gz
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
Diffstat (limited to 'lib/addsf3.c')
-rw-r--r--lib/addsf3.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/addsf3.c b/lib/addsf3.c
index e57270a1e..a5d24e19c 100644
--- a/lib/addsf3.c
+++ b/lib/addsf3.c
@@ -84,7 +84,7 @@ fp_t __addsf3(fp_t a, fp_t b) {
// Shift the significand of b by the difference in exponents, with a sticky
// bottom bit to get rounding correct.
- const int align = aExponent - bExponent;
+ const unsigned int align = aExponent - bExponent;
if (align) {
if (align < typeWidth) {
const bool sticky = bSignificand << (typeWidth - align);