From 539125b89598704471b9449148fc323e1abd5846 Mon Sep 17 00:00:00 2001 From: "Ryan C. Gordon" Date: Wed, 20 May 2020 16:43:02 -0400 Subject: [PATCH] locale: Fixed compiler warning on WinRT. --- src/locale/winrt/SDL_syslocale.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/locale/winrt/SDL_syslocale.c b/src/locale/winrt/SDL_syslocale.c index f6c612f53..923565cc0 100644 --- a/src/locale/winrt/SDL_syslocale.c +++ b/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++) {