Fixed warning C4267: '=': conversion from 'size_t' to 'int', possible loss of data

This commit is contained in:
Sam Lantinga 2024-07-20 11:16:53 -07:00
parent 03bb2c17ed
commit 71d2662a39
1 changed files with 1 additions and 1 deletions

View File

@ -219,7 +219,7 @@ static int SDL_URIDecode(const char *src, char *dst, int len)
return -1;
}
if (len == 0) {
len = SDL_strlen(src);
len = (int)SDL_strlen(src);
}
for (ri = 0, wi = 0, di = 0; ri < len && wi < len; ri += 1) {
if (di == 0) {