diff options
author | Joerg Sonnenberger <joerg@bec.de> | 2012-06-18 18:51:13 +0000 |
---|---|---|
committer | Joerg Sonnenberger <joerg@bec.de> | 2012-06-18 18:51:13 +0000 |
commit | 0499b8433538a1913ca955566cd34368752bf7af (patch) | |
tree | 3333947aeb2f0f27821873721c173ba898f43588 /lib/addsf3.c | |
parent | 8cd0df78c317106be477c5496f481af0563a5208 (diff) | |
download | compiler-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.c | 2 |
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); |