aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPetteri Aimonen <jpa@github.mail.kapsi.fi>2020-03-15 06:53:22 +0200
committerGitHub <noreply@github.com>2020-03-15 06:53:22 +0200
commit66365d58887df65df8f3047474e5973f885f13de (patch)
tree0bf491f681f52cc63415a8f15e7b89e82d0e6a4a
parent20a2d64bb8e526605a27feb3f734a13bd9f04496 (diff)
parent950d51759b3746ed96cfad6cb989775dacc94949 (diff)
Merge pull request #16 from althonos/patch-1
Fix GCC error when compiling in no-overflow mode
-rw-r--r--libfixmath/fix16_trig.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libfixmath/fix16_trig.c b/libfixmath/fix16_trig.c
index 791bb3e..09dd5d2 100644
--- a/libfixmath/fix16_trig.c
+++ b/libfixmath/fix16_trig.c
@@ -115,7 +115,7 @@ fix16_t fix16_tan(fix16_t inAngle)
{
#ifndef FIXMATH_NO_OVERFLOW
return fix16_sdiv(fix16_sin(inAngle), fix16_cos(inAngle));
- #elif
+ #else
return fix16_div(fix16_sin(inAngle), fix16_cos(inAngle));
#endif
}