diff --git a/src/smartplaylists/smartplaylistsearchtermwidget.cpp b/src/smartplaylists/smartplaylistsearchtermwidget.cpp index 1b664459..3f711154 100644 --- a/src/smartplaylists/smartplaylistsearchtermwidget.cpp +++ b/src/smartplaylists/smartplaylistsearchtermwidget.cpp @@ -396,7 +396,7 @@ SmartPlaylistSearchTerm SmartPlaylistSearchTermWidget::Term() const { ret.value_ = ui_->value_date_numeric->value(); } else if (value_page == ui_->page_date_relative) { - ret.date_ = SmartPlaylistSearchTerm::DateType(ui_->date_type_relative->currentIndex()); + ret.date_ = static_cast(ui_->date_type_relative->currentIndex()); ret.value_ = ui_->value_date_numeric1->value(); ret.second_value_ = ui_->value_date_numeric2->value(); } diff --git a/tests/src/tagreader_test.cpp b/tests/src/tagreader_test.cpp index be839dee..0de68458 100644 --- a/tests/src/tagreader_test.cpp +++ b/tests/src/tagreader_test.cpp @@ -83,7 +83,7 @@ class TagReaderTest : public ::testing::Test { QByteArray buffer; QCryptographicHash hash(QCryptographicHash::Sha256); while (file.bytesAvailable() > 0) { - quint64 bytes_read = qMin(file.bytesAvailable(), qint64(8192)); + qint64 bytes_read = qMin(file.bytesAvailable(), 8192LL); buffer = file.read(bytes_read); if (buffer.isEmpty()) break; hash.addData(buffer, bytes_read);