locale: Fixed compiler warning on Visual Studio.
authorRyan C. Gordon <icculus@icculus.org>
Thu, 21 May 2020 03:48:56 -0400
changeset 13843cbd001bb0b89
parent 13842 a09f7d0800eb
child 13844 3c44ba7a04fd
locale: Fixed compiler warning on Visual Studio.
src/locale/windows/SDL_syslocale.c
     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++) {