diff options
author | Marti Bolivar <mbolivar@leaflabs.com> | 2011-04-12 17:17:12 -0400 |
---|---|---|
committer | Marti Bolivar <mbolivar@leaflabs.com> | 2011-04-12 17:25:51 -0400 |
commit | 686b7d5a2d72e71bac76bd7ad9f4aae4e95039c5 (patch) | |
tree | 1df417797da1c70892161a741ebc05cca4953a6c /wirish | |
parent | 298661aa1c189400f27328fa77d5b3a10f1ba3ef (diff) | |
download | librambutan-686b7d5a2d72e71bac76bd7ad9f4aae4e95039c5.tar.gz librambutan-686b7d5a2d72e71bac76bd7ad9f4aae4e95039c5.zip |
Fixing brain-damaged abs() implementation.
Diffstat (limited to 'wirish')
-rw-r--r-- | wirish/wirish_math.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/wirish/wirish_math.h b/wirish/wirish_math.h index fa544a9..f9062af 100644 --- a/wirish/wirish_math.h +++ b/wirish/wirish_math.h @@ -100,7 +100,7 @@ static inline long map(long value, long fromStart, long fromEnd, #ifdef abs #undef abs #endif -#define abs(x) (((x) > 0) ? (x) : -(unsigned)(x)) +#define abs(x) (((x) > 0) ? (x) : -(x)) /* Following are duplicate declarations (with Doxygen comments) for * some of the math.h functions; this is for the convenience of the |