From ba11122ea0e2dee057306d386c4fe50f0781fdb7 Mon Sep 17 00:00:00 2001 From: "Ryan C. Gordon" Date: Thu, 21 May 2020 03:48:56 -0400 Subject: [PATCH] locale: Fixed compiler warning on Visual Studio. --- src/locale/windows/SDL_syslocale.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/locale/windows/SDL_syslocale.c b/src/locale/windows/SDL_syslocale.c index 267b7955d..053ea7ef9 100644 --- a/src/locale/windows/SDL_syslocale.c +++ b/src/locale/windows/SDL_syslocale.c @@ -78,7 +78,7 @@ SDL_SYS_GetPreferredLocales_vista(char *buf, size_t buflen) if (!pGetUserPreferredUILanguages(MUI_LANGUAGE_NAME, &numlangs, wbuf, &wbuflen)) { SDL_SYS_GetPreferredLocales_winxp(buf, buflen); /* oh well, try the fallback. */ } else { - const ULONG endidx = SDL_min(buflen, wbuflen - 1); + const ULONG endidx = (ULONG) SDL_min(buflen, wbuflen - 1); ULONG str_start = 0; ULONG i; for (i = 0; i < endidx; i++) {