diff options
author | Daniel Stenberg <daniel@haxx.se> | 2002-06-18 07:08:41 +0000 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2002-06-18 07:08:41 +0000 |
commit | b1fe81d8c7deb6bf39a207e86f3fd383548bc78d (patch) | |
tree | f6b7574913ddbbadde316488c6a34412e363aefa /firmware/include/stdlib.h | |
parent | 8d718ee196d86a4424f7e9ffe51d087ff8f06db5 (diff) |
abs() is abs and should work as abs when you want abs
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@1056 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/include/stdlib.h')
-rw-r--r-- | firmware/include/stdlib.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/firmware/include/stdlib.h b/firmware/include/stdlib.h index bf50c7e49e..40b5207223 100644 --- a/firmware/include/stdlib.h +++ b/firmware/include/stdlib.h @@ -30,7 +30,7 @@ void *calloc (size_t nmemb, size_t size); void free(void *); void *realloc(void *, size_t); -#define abs(x) ((x)>0?x:-x) +#define abs(x) ((x)>0?(x):-(x)) #ifdef __cplusplus } |