Fix cast warnings with MSVC

This commit is contained in:
Jonas Kvinge
2025-03-25 00:37:07 +01:00
parent d5281abb22
commit 5e031be42c
59 changed files with 207 additions and 207 deletions

View File

@@ -241,8 +241,8 @@ void Queue::UpdateTotalLength() {
Q_ASSERT(playlist_->has_item_at(id));
quint64 length = playlist_->item_at(id)->Metadata().length_nanosec();
if (length > 0) total += length;
const qint64 length = playlist_->item_at(id)->Metadata().length_nanosec();
if (length > 0) total += static_cast<quint64>(length);
}
total_length_ns_ = total;