SDL_image: IMG_avif.c: fix 'Shift amount too large' warnings in 32 bit builds.

From 1a5b2185f43bbcc30a962e85a99b8095f15a279a Mon Sep 17 00:00:00 2001
From: Ozkan Sezer <[EMAIL REDACTED]>
Date: Tue, 17 May 2022 17:15:00 +0300
Subject: [PATCH] IMG_avif.c: fix 'Shift amount too large' warnings in 32 bit
 builds.

---
 IMG_avif.c | 16 ++++++++--------
 1 file changed, 8 insertions(+), 8 deletions(-)

diff --git a/IMG_avif.c b/IMG_avif.c
index bc00aa3..fd45eeb 100644
--- a/IMG_avif.c
+++ b/IMG_avif.c
@@ -115,14 +115,14 @@ static SDL_bool ReadAVIFHeader(SDL_RWops *src, Uint8 **header_data, size_t *head
         }
         read += 8;
 
-        size = (((size_t)magic[8] << 56) |
-                ((size_t)magic[9] << 48) |
-                ((size_t)magic[10] << 40) |
-                ((size_t)magic[11] << 32) |
-                ((size_t)magic[12] << 24) |
-                ((size_t)magic[13] << 16) |
-                ((size_t)magic[14] << 8) |
-                ((size_t)magic[15] << 0));
+        size = (((Uint64)magic[8] << 56) |
+                ((Uint64)magic[9] << 48) |
+                ((Uint64)magic[10] << 40) |
+                ((Uint64)magic[11] << 32) |
+                ((Uint64)magic[12] << 24) |
+                ((Uint64)magic[13] << 16) |
+                ((Uint64)magic[14] << 8) |
+                ((Uint64)magic[15] << 0));
     }
 
     if (size > INT_MAX) {