remove unnecessary parentheses from SDL_abs()
parent
6cbee0634e
commit
6407d4b0a8
|
@ -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
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue