aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjoe.schaack <joe.schaack@gmail.com>2011-03-02 19:56:20 +0000
committerjoe.schaack <joe.schaack@gmail.com>2011-03-02 19:56:20 +0000
commit88b4ee4c0e264be58b2ea20a88f4f64ca2436727 (patch)
tree871326f8a1ec1181d13700250ed4673fc234c831
parente8ab51042ba2f29feb98f39fb09f93297320060c (diff)
downloadlibfixmath-88b4ee4c0e264be58b2ea20a88f4f64ca2436727.tar.gz
I assume you mean to subtract the two for the ssub function...
-rw-r--r--libfixmath/fix16.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/libfixmath/fix16.h b/libfixmath/fix16.h
index 92573d6..300bb72 100644
--- a/libfixmath/fix16.h
+++ b/libfixmath/fix16.h
@@ -48,7 +48,7 @@ extern fix16_t fix16_sadd(fix16_t inArg0, fix16_t inArg1);
static inline fix16_t fix16_sub(fix16_t inArg0, fix16_t inArg1) { return (inArg0 - inArg1); }
-static inline fix16_t fix16_ssub(fix16_t inArg0, fix16_t inArg1) { return fix16_sadd(inArg0, inArg1);}
+static inline fix16_t fix16_ssub(fix16_t inArg0, fix16_t inArg1) { return fix16_sadd(inArg0, -inArg1);}