From a00669db1835d7e021a876dd904620ff7cc011ca Mon Sep 17 00:00:00 2001 From: Sam Lantinga Date: Mon, 15 Apr 2024 10:29:45 -0700 Subject: [PATCH] Fixed warning C4267: 'initializing': conversion from 'size_t' to 'int', possible loss of data --- src/dialog/windows/SDL_windowsdialog.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/dialog/windows/SDL_windowsdialog.c b/src/dialog/windows/SDL_windowsdialog.c index 3c766993b..edb4cbcf6 100644 --- a/src/dialog/windows/SDL_windowsdialog.c +++ b/src/dialog/windows/SDL_windowsdialog.c @@ -132,7 +132,7 @@ void windows_ShowFileDialog(void *ptr) return; } - int filter_len = SDL_strlen(filterlist); + int filter_len = (int)SDL_strlen(filterlist); for (char *c = filterlist; *c; c++) { if (*c == '\x01') {