Skip to content
Permalink
Browse files

locale: Fixed compiler warning on WinRT.

  • Loading branch information
icculus committed May 20, 2020
1 parent 8bd3b2c commit 539125b89598704471b9449148fc323e1abd5846
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/locale/winrt/SDL_syslocale.c
@@ -45,7 +45,7 @@ SDL_SYS_GetPreferredLocales(char *buf, size_t buflen)
/* Need to convert LPWSTR to LPSTR, that is wide char to char. */
int i;

if (ret >= (buflen - 1) ) {
if ( ((size_t) ret) >= (buflen - 1) ) {
ret = (int) (buflen - 1);
}
for (i = 0; i < ret; i++) {

0 comments on commit 539125b

Please sign in to comment.