From f8106d4f3032bb275d41623806bdc02172293b3d Mon Sep 17 00:00:00 2001 From: Sam Lantinga Date: Mon, 6 Mar 2023 13:33:52 -0800 Subject: [PATCH] Fixed build warning format '%x' expects argument of type 'unsigned int', but argument 2 has type 'Uint32' {aka 'long unsigned int'} --- src/video/SDL_video.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/video/SDL_video.c b/src/video/SDL_video.c index d9691b5d07..3bf7a5f801 100644 --- a/src/video/SDL_video.c +++ b/src/video/SDL_video.c @@ -1680,7 +1680,7 @@ SDL_Window *SDL_CreateWindow(const char *title, int w, int h, Uint32 flags) /* ensure no more than one of these flags is set */ type_flags = flags & (SDL_WINDOW_UTILITY | SDL_WINDOW_TOOLTIP | SDL_WINDOW_POPUP_MENU); if (type_flags & (type_flags - 1)) { - SDL_SetError("Conflicting window type flags specified: 0x%.8x", type_flags); + SDL_SetError("Conflicting window type flags specified: 0x%.8x", (unsigned int)type_flags); return NULL; } @@ -1731,7 +1731,7 @@ SDL_Window *SDL_CreateWindow(const char *title, int w, int h, Uint32 flags) /* ensure no more than one of these flags is set */ graphics_flags = flags & (SDL_WINDOW_OPENGL | SDL_WINDOW_METAL | SDL_WINDOW_VULKAN); if (graphics_flags & (graphics_flags - 1)) { - SDL_SetError("Conflicting window graphics flags specified: 0x%.8x", graphics_flags); + SDL_SetError("Conflicting window graphics flags specified: 0x%.8x", (unsigned int)graphics_flags); return NULL; }