diff --git a/src/FAudioGMS.c b/src/FAudioGMS.c
index fed37c1..de93c8e 100644
--- a/src/FAudioGMS.c
+++ b/src/FAudioGMS.c
@@ -1404,7 +1404,7 @@ double FAudioGMS_SoundInstance_GetTrackPositionInSeconds(double soundInstanceID)
 
     if (instance != NULL)
     {
-		return FAudioGMS_INTERNAL_SoundInstance_GetTrackPositionInSampleFrames(instance) / instance->format.nSamplesPerSec;
+		return (double)FAudioGMS_INTERNAL_SoundInstance_GetTrackPositionInSampleFrames(instance) / instance->format.nSamplesPerSec;
     }
     else
     {