SDL_image: Fixed build warning for MSVC x86

From 1053ea1dd3947ef3151a6f0c0da9b257fc473a85 Mon Sep 17 00:00:00 2001
From: Sam Lantinga <[EMAIL REDACTED]>
Date: Mon, 11 Sep 2023 22:32:55 -0700
Subject: [PATCH] Fixed build warning for MSVC x86

---
 src/IMG_xcf.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/IMG_xcf.c b/src/IMG_xcf.c
index a1b117d0..d641d6ab 100644
--- a/src/IMG_xcf.c
+++ b/src/IMG_xcf.c
@@ -768,7 +768,7 @@ do_layer_surface(SDL_Surface *surface, SDL_RWops *src, xcf_header *head, xcf_lay
                 length = level->tile_file_offsets[j + 1] - level->tile_file_offsets[j];
             }
             if (length <= SDL_SIZE_MAX) {
-                tile = load_tile(src, length, hierarchy->bpp, ox, oy);
+                tile = load_tile(src, (size_t)length, hierarchy->bpp, ox, oy);
             } else {
                 IMG_SetError("Gimp image invalid tile offsets");
                 tile = NULL;