From 686b7d5a2d72e71bac76bd7ad9f4aae4e95039c5 Mon Sep 17 00:00:00 2001 From: Marti Bolivar Date: Tue, 12 Apr 2011 17:17:12 -0400 Subject: Fixing brain-damaged abs() implementation. --- wirish/wirish_math.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'wirish') 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 -- cgit v1.2.3