mirror of
https://github.com/Ryujinx/SDL.git
synced 2024-12-24 05:35:30 +00:00
locale: Fixed compiler warning on WinRT.
This commit is contained in:
parent
8bd3b2c801
commit
539125b895
|
@ -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++) {
|
||||
|
|
Loading…
Reference in a new issue