mirror of
https://github.com/libsdl-org/SDL.git
synced 2026-06-23 14:31:56 +00:00
remove unnecessary parentheses from SDL_abs()
This commit is contained in:
parent
6cbee0634e
commit
6407d4b0a8
1 changed files with 1 additions and 1 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue