Commit 6407d4b0a87656b470093a80d11a88dce62b9cfd

Ozkan Sezer 2021-11-05T17:10:02

remove unnecessary parentheses from SDL_abs()

1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git a/src/stdlib/SDL_stdlib.c b/src/stdlib/SDL_stdlib.c
index 789a530..7681f0a 100644
--- a/src/stdlib/SDL_stdlib.c
+++ b/src/stdlib/SDL_stdlib.c
@@ -499,7 +499,7 @@ int SDL_abs(int x)
 #if defined(HAVE_ABS)
     return abs(x);
 #else
-    return ((x) < 0 ? -(x) : (x));
+    return (x < 0) ? -x : x;
 #endif
 }