From aefa3eef1a9034340bc456f658c9b36cf70b2c1e Mon Sep 17 00:00:00 2001 From: alufolie91 Date: Wed, 9 Aug 2023 16:46:34 +0200 Subject: [PATCH] MP Libopenmpt: Fix UINT32->double cast see: https://git.do.srb2.org/STJr/SRB2/-/commit/b38f6f6125dc0aa8f6e7179ff02fbaa98b528909?merge_request_iid=494 --- src/sdl/mixer_sound.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/sdl/mixer_sound.c b/src/sdl/mixer_sound.c index 694093672..c6ade78af 100644 --- a/src/sdl/mixer_sound.c +++ b/src/sdl/mixer_sound.c @@ -1071,7 +1071,7 @@ boolean I_SetSongPosition(UINT32 position) { // This isn't 100% correct because we don't account for loop points because we can't get them. // But if you seek past end of song, OpenMPT seeks to 0. So adjust the position anyway. - openmpt.module_set_position_seconds(mod, (double)get_adjusted_position(position)/1000.); // returns new position + openmpt.module_set_position_seconds(mod, (double)(get_adjusted_position(position)/1000.0L)); // returns new position return true; } else