Skip to content

Commit

Permalink
locale: Fixed compiler warning on Visual Studio.
Browse files Browse the repository at this point in the history
  • Loading branch information
icculus committed May 21, 2020
1 parent b4e76b5 commit ba11122
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/locale/windows/SDL_syslocale.c
Expand Up @@ -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++) {
Expand Down

0 comments on commit ba11122

Please sign in to comment.