Use 1u literal for flags/masks calculation

Changes `1 <<` and `1<<` to use `1u`.
This commit is contained in:
Susko3
2024-05-09 02:18:20 +02:00
committed by Sam Lantinga
parent 1944c009e9
commit 895586c928
4 changed files with 8 additions and 8 deletions

View File

@@ -521,7 +521,7 @@ extern DECLSPEC SDL_bool SDLCALL SDL_CursorVisible(void);
*
* \since This macro is available since SDL 3.0.0.
*/
#define SDL_BUTTON(X) (1 << ((X)-1))
#define SDL_BUTTON(X) (1u << ((X)-1))
#define SDL_BUTTON_LEFT 1
#define SDL_BUTTON_MIDDLE 2