Skip to content

Commit b88d1c3

Browse files
committed
Fix implicit float -> Sint64 conversion
1 parent 44315d4 commit b88d1c3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

examples/basics/06-seeking/seeking.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ static void seek_audio(float x, float y)
9696
if (SDL_PointInRectFloat(&pt, &progressbar)) {
9797
/* seek to a new position in the track, based on where the mouse clicked/dragged in the progress bar. */
9898
const float pct = (pt.x - progressbar.x) / progressbar.w;
99-
MIX_SetTrackPlaybackPosition(track, (Sint64) ((float) MIX_GetAudioDuration(audio)) * pct);
99+
MIX_SetTrackPlaybackPosition(track, (Sint64) ((float) MIX_GetAudioDuration(audio) * pct));
100100
}
101101
}
102102

0 commit comments

Comments
 (0)