aboutsummaryrefslogtreecommitdiffstats
path: root/wirish/wirish_math.h
diff options
context:
space:
mode:
Diffstat (limited to 'wirish/wirish_math.h')
-rw-r--r--wirish/wirish_math.h2
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