Use 1u literal for flags/masks calculation

Changes `1 <<` and `1<<` to use `1u`.
This commit is contained in:
Susko3 authored and Sam Lantinga committed 2024-05-09 10:29:48 -07:00
1 parent 1944c009e9
commit 895586c928
4 files changed
+8 -8

No files matched your search

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