From f40c96b70f8752c1c69f415afef45b85d6b2ca8d Mon Sep 17 00:00:00 2001
From: Sam Lantinga <[EMAIL REDACTED]>
Date: Fri, 15 Jul 2022 15:11:50 -0700
Subject: [PATCH] Fixed building with Visual Studio
---
src/codecs/music_xmp.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/codecs/music_xmp.c b/src/codecs/music_xmp.c
index 7ee2fbef..a89f725b 100644
--- a/src/codecs/music_xmp.c
+++ b/src/codecs/music_xmp.c
@@ -174,13 +174,13 @@ static void libxmp_set_error(int e)
}
static unsigned long xmp_fread(void *dst, unsigned long len, unsigned long nmemb, void *src) {
- return SDL_RWread((SDL_RWops*)src, dst, len, nmemb);
+ return (unsigned long)SDL_RWread((SDL_RWops*)src, dst, len, nmemb);
}
static int xmp_fseek(void *src, long offset, int whence) {
return (SDL_RWseek((SDL_RWops*)src, offset, whence) < 0)? -1 : 0;
}
static long xmp_ftell(void *src) {
- return SDL_RWtell((SDL_RWops*)src);
+ return (long)SDL_RWtell((SDL_RWops*)src);
}
/* Load a libxmp stream from an SDL_RWops object */