diff options
| author | Petteri Aimonen <jpa@github.mail.kapsi.fi> | 2017-09-28 18:58:34 +0300 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2017-09-28 18:58:34 +0300 |
| commit | 7f9c966b5c473770dc93940e3e6e5323f3c1ad69 (patch) | |
| tree | ce54e4141c77d51e25556f65d29257bf4e3620e0 | |
| parent | 6928e2f76d9a4eb978191cc254a0dcadef124092 (diff) | |
| parent | f8596fbadae5465d1fcabef0a3a0bfb1570a7cb0 (diff) | |
Merge pull request #4 from cladmi/pr/libfixmath/gcc6
Fix '-Werror=shift-negative-value' for gcc 6
| -rw-r--r-- | libfixmath/fix16.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libfixmath/fix16.h b/libfixmath/fix16.h index 35e101d..8c5e9da 100644 --- a/libfixmath/fix16.h +++ b/libfixmath/fix16.h @@ -307,7 +307,7 @@ extern fix16_t fix16_from_str(const char *buf); ( \
(( #i[0] ) == '-') \
? -FIXMATH_COMBINE_I_M((unsigned)( ( (i) * -1) ), m) \
- : FIXMATH_COMBINE_I_M(i, m) \
+ : FIXMATH_COMBINE_I_M((unsigned)i, m) \
) \
)
|
