locale: Fixed compiler warning on WinRT.
authorRyan C. Gordon <icculus@icculus.org>
Wed, 20 May 2020 16:43:02 -0400
changeset 13837c18c3084bd77
parent 13836 9ebb8a2929b7
child 13838 02e41b30186f
locale: Fixed compiler warning on WinRT.
src/locale/winrt/SDL_syslocale.c
     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++) {