From 88562890ae4db8ec86b63b7743cf62a9f127c60f Mon Sep 17 00:00:00 2001 From: Jonas Kvinge Date: Mon, 26 Apr 2021 23:36:59 +0200 Subject: [PATCH] Use int in MainWindow::UpdateTrackSliderPosition --- src/core/mainwindow.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/core/mainwindow.cpp b/src/core/mainwindow.cpp index 24a69d0b9..261ebfd01 100644 --- a/src/core/mainwindow.cpp +++ b/src/core/mainwindow.cpp @@ -1640,8 +1640,8 @@ void MainWindow::UpdateTrackSliderPosition() { PlaylistItemPtr item(app_->player()->GetCurrentItem()); - const qint64 slider_position = std::floor(float(app_->player()->engine()->position_nanosec()) / kNsecPerMsec); - const qint64 slider_length = app_->player()->engine()->length_nanosec() / kNsecPerMsec; + const int slider_position = std::floor(float(app_->player()->engine()->position_nanosec()) / kNsecPerMsec); + const int slider_length = static_cast(app_->player()->engine()->length_nanosec() / kNsecPerMsec); // Update the slider ui_->track_slider->SetValue(slider_position, slider_length);