mirror of
https://github.com/libsdl-org/SDL.git
synced 2025-09-05 19:08:12 +00:00
Fixed warning: implicit conversion loses integer precision: 'SDL_WindowFlags' (aka 'unsigned long') to 'Uint32' (aka 'unsigned int')
This commit is contained in:
@@ -2042,10 +2042,10 @@ static struct {
|
||||
{ SDL_PROP_WINDOW_CREATE_VULKAN_BOOLEAN, SDL_WINDOW_VULKAN, SDL_FALSE }
|
||||
};
|
||||
|
||||
static Uint32 SDL_GetWindowFlagProperties(SDL_PropertiesID props)
|
||||
static SDL_WindowFlags SDL_GetWindowFlagProperties(SDL_PropertiesID props)
|
||||
{
|
||||
unsigned i;
|
||||
SDL_WindowFlags flags = (Uint32)SDL_GetNumberProperty(props, "flags", 0);
|
||||
SDL_WindowFlags flags = (SDL_WindowFlags)SDL_GetNumberProperty(props, "flags", 0);
|
||||
|
||||
for (i = 0; i < SDL_arraysize(SDL_WindowFlagProperties); ++i) {
|
||||
if (SDL_WindowFlagProperties[i].invert_value) {
|
||||
|
Reference in New Issue
Block a user