wav: Patched to compile on Visual Studio.
(cherry picked from commit 09ee8876b3938d226a1f7e9c71e2cd1dcc7e399e)
diff --git a/src/audio/SDL_wave.c b/src/audio/SDL_wave.c
index fcf8e43..1a8790a 100644
--- a/src/audio/SDL_wave.c
+++ b/src/audio/SDL_wave.c
@@ -1889,7 +1889,7 @@
size. This also means a malicious file can't allocate 4 gigabytes
for the chunks without actually supplying a 4 gigabyte file. */
if ((flen > 0) && ((chunk->position + chunk->length) > flen)) {
- chunk->length = flen - chunk->position;
+ chunk->length = (Uint32) (flen - chunk->position);
}
/* Only use the first data chunk. Handling the wavl list madness