src/locale/winrt/SDL_syslocale.c
changeset 13837 c18c3084bd77
parent 13835 3f63f707ca4f
     1.1 --- a/src/locale/winrt/SDL_syslocale.c	Wed May 20 16:34:19 2020 -0400
     1.2 +++ b/src/locale/winrt/SDL_syslocale.c	Wed May 20 16:43:02 2020 -0400
     1.3 @@ -45,7 +45,7 @@
     1.4          /* Need to convert LPWSTR to LPSTR, that is wide char to char. */
     1.5          int i;
     1.6  
     1.7 -        if (ret >= (buflen - 1) ) {
     1.8 +        if ( ((size_t) ret) >= (buflen - 1) ) {
     1.9              ret = (int) (buflen - 1);
    1.10          }
    1.11          for (i = 0; i < ret; i++) {