From b88d1c339139ffd85ec3753ca8c6c6ae6b2b2c30 Mon Sep 17 00:00:00 2001
From: Anonymous Maarten <[EMAIL REDACTED]>
Date: Wed, 4 Feb 2026 21:41:35 +0100
Subject: [PATCH] Fix implicit float -> Sint64 conversion
---
examples/basics/06-seeking/seeking.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/examples/basics/06-seeking/seeking.c b/examples/basics/06-seeking/seeking.c
index 1a2d1e53..74df4353 100644
--- a/examples/basics/06-seeking/seeking.c
+++ b/examples/basics/06-seeking/seeking.c
@@ -96,7 +96,7 @@ static void seek_audio(float x, float y)
if (SDL_PointInRectFloat(&pt, &progressbar)) {
/* seek to a new position in the track, based on where the mouse clicked/dragged in the progress bar. */
const float pct = (pt.x - progressbar.x) / progressbar.w;
- MIX_SetTrackPlaybackPosition(track, (Sint64) ((float) MIX_GetAudioDuration(audio)) * pct);
+ MIX_SetTrackPlaybackPosition(track, (Sint64) ((float) MIX_GetAudioDuration(audio) * pct));
}
}