shithub: cstory

Download patch

ref: 5e6658847cc387e306b511f7c8622d7841345a16
parent: ebb238ebdcc94dc77763e5a53801df822c476ebc
author: Gabriel Ravier <gabravier@gmail.com>
date: Wed Jan 29 18:04:17 EST 2020

Re-add missing "(double)"

Signed-off-by: Gabriel Ravier <gabravier@gmail.com>

--- a/src/Backends/Audio/SDL2.cpp
+++ b/src/Backends/Audio/SDL2.cpp
@@ -98,7 +98,7 @@
 				{
 					if (sound->looping)
 					{
-						sound->position = fmod(sound->position, sound->frames);
+						sound->position = fmod(sound->position, (double)sound->frames);
 					}
 					else
 					{
--