aboutsummaryrefslogtreecommitdiff
path: root/lib/addsf3.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/addsf3.c')
-rw-r--r--lib/addsf3.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/addsf3.c b/lib/addsf3.c
index e57270a1e28d..0268324deaab 100644
--- a/lib/addsf3.c
+++ b/lib/addsf3.c
@@ -15,7 +15,7 @@
#define SINGLE_PRECISION
#include "fp_lib.h"
-ARM_EABI_FNALIAS(fadd, addsf3);
+ARM_EABI_FNALIAS(fadd, addsf3)
fp_t __addsf3(fp_t a, fp_t b) {
@@ -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);