Răsfoiți Sursa

remove unnecessary parentheses from SDL_abs()

Ozkan Sezer 3 ani în urmă
părinte
comite
6407d4b0a8
1 a modificat fișierele cu 1 adăugiri și 1 ștergeri
  1. 1 1
      src/stdlib/SDL_stdlib.c

+ 1 - 1
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
 }