Use 1u literal for flags/masks calculation
Changes `1 <<` and `1<<` to use `1u`.
This commit is contained in:
1 parent
1944c009e9
commit
895586c928
4 files changed
+8
-8
No files matched your search
@@ -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
|
||||
|
||||
Reference in new issue
Block a user