From 551237350e52b9bae65567a8502276914a339172 Mon Sep 17 00:00:00 2001
From: mazmazz <mar.marcoz@outlook.com>
Date: Thu, 20 Sep 2018 07:50:57 -0400
Subject: [PATCH] MP Mixer X: Fix double->UINT32 cast (buildbots)

---
 src/sdl/mixer_sound.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/sdl/mixer_sound.c b/src/sdl/mixer_sound.c
index 1092421194..bef6b39d5e 100644
--- a/src/sdl/mixer_sound.c
+++ b/src/sdl/mixer_sound.c
@@ -806,7 +806,7 @@ UINT32 I_GetSongLength(void)
 #ifdef HAVE_MIXERX
 		double xlength = Mix_GetMusicTotalTime(music);
 		if (xlength >= 0)
-			return (UINT32)floor(xlength * 1000.);
+			return (UINT32)(xlength*1000);
 #endif
 		// VERY IMPORTANT to set your LENGTHMS= in your song files, folks!
 		// SDL mixer can't read music length itself.
@@ -953,7 +953,7 @@ UINT32 I_GetSongPosition(void)
 #ifdef HAVE_MIXERX
 		double xposition = Mix_GetMusicPosition(music);
 		if (xposition >= 0)
-			return (UINT32)floor(xposition * 1000.);
+			return (UINT32)(xposition*1000);
 #endif
 		return music_bytes/44100.0L*1000.0L/4; //assume 44.1khz
 		// 4 = byte length for 16-bit samples (AUDIO_S16SYS), stereo (2-channel)
-- 
GitLab