From 71d2662a39fd3ad7a729616e26c5a81e4f4968df Mon Sep 17 00:00:00 2001 From: Sam Lantinga Date: Sat, 20 Jul 2024 11:16:53 -0700 Subject: [PATCH] Fixed warning C4267: '=': conversion from 'size_t' to 'int', possible loss of data --- src/SDL_utils.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/SDL_utils.c b/src/SDL_utils.c index 26b838258d10f..26a25bec4cdf7 100644 --- a/src/SDL_utils.c +++ b/src/SDL_utils.c @@ -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) {