src/locale/windows/SDL_syslocale.c
changeset 13843 cbd001bb0b89
parent 13797 55ec5ae4aa0b
child 13845 210fb62f0c96
     1.1 --- a/src/locale/windows/SDL_syslocale.c	Wed May 20 17:32:23 2020 -0400
     1.2 +++ b/src/locale/windows/SDL_syslocale.c	Thu May 21 03:48:56 2020 -0400
     1.3 @@ -78,7 +78,7 @@
     1.4      if (!pGetUserPreferredUILanguages(MUI_LANGUAGE_NAME, &numlangs, wbuf, &wbuflen)) {
     1.5          SDL_SYS_GetPreferredLocales_winxp(buf, buflen);  /* oh well, try the fallback. */
     1.6      } else {
     1.7 -        const ULONG endidx = SDL_min(buflen, wbuflen - 1);
     1.8 +        const ULONG endidx = (ULONG) SDL_min(buflen, wbuflen - 1);
     1.9          ULONG str_start = 0;
    1.10          ULONG i;
    1.11          for (i = 0; i < endidx; i++) {