mirror of
https://github.com/Relintai/sdl2_frt.git
synced 2024-12-16 11:06:49 +01: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 New Issue
Block a user