From 6407d4b0a87656b470093a80d11a88dce62b9cfd Mon Sep 17 00:00:00 2001 From: Ozkan Sezer Date: Fri, 5 Nov 2021 17:10:02 +0300 Subject: [PATCH] remove unnecessary parentheses from SDL_abs() --- src/stdlib/SDL_stdlib.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/stdlib/SDL_stdlib.c b/src/stdlib/SDL_stdlib.c index 789a5300a..7681f0a88 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 }