Added missing parenthesis around SDL_clamp

This commit is contained in:
Brick authored and Sam Lantinga committed 2021-08-14 17:24:33 -07:00
1 parent 454943cf3e
commit 72f41d1fb1
1 file changed
+1 -1
+1 -1
View File
@@ -444,7 +444,7 @@ extern DECLSPEC int SDLCALL SDL_abs(int x);
/* NOTE: these double-evaluate their arguments, so you should never have side effects in the parameters */
#define SDL_min(x, y) (((x) < (y)) ? (x) : (y))
#define SDL_max(x, y) (((x) > (y)) ? (x) : (y))
#define SDL_clamp(x, a, b) ((x) < (a)) ? (a) : (((x) > (b)) ? (b) : (x))
#define SDL_clamp(x, a, b) (((x) < (a)) ? (a) : (((x) > (b)) ? (b) : (x)))
extern DECLSPEC int SDLCALL SDL_isalpha(int x);
extern DECLSPEC int SDLCALL SDL_isalnum(int x);