Fixed warning C4244: '=': conversion from 'SDL_Keymod' to 'Uint16', possible loss of data

This commit is contained in:
Sam Lantinga
2024-05-10 16:21:45 -07:00
parent 8582bdaab8
commit c95c415a0b
2 changed files with 7 additions and 7 deletions

View File

@@ -300,7 +300,7 @@ typedef Uint32 SDL_Keycode;
*
* \since This datatype is available since SDL 3.0.0.
*/
typedef Uint32 SDL_Keymod;
typedef Uint16 SDL_Keymod;
#define SDL_KMOD_NONE 0x0000u /**< no modifier is applicable. */
#define SDL_KMOD_LSHIFT 0x0001u /**< the left Shift key is down. */