Fix cast warnings with MSVC
This commit is contained in:
@@ -248,7 +248,7 @@ QString QobuzService::DecodeAppSecret(const QString &app_secret_base64) const {
|
||||
|
||||
for (int x = 0, y = 0; x < app_secret_binary.length(); ++x , ++y) {
|
||||
if (y == appid.length()) y = 0;
|
||||
const uint rc = app_secret_binary[x] ^ appid[y];
|
||||
const uint rc = static_cast<uint>(app_secret_binary[x] ^ appid[y]);
|
||||
if (rc > 0xFFFF) {
|
||||
return app_secret_base64;
|
||||
}
|
||||
|
||||
@@ -112,7 +112,7 @@ void QobuzStreamURLRequest::GetStreamURL() {
|
||||
reply_->deleteLater();
|
||||
}
|
||||
|
||||
const quint64 timestamp = QDateTime::currentSecsSinceEpoch();
|
||||
const quint64 timestamp = static_cast<quint64>(QDateTime::currentSecsSinceEpoch());
|
||||
|
||||
ParamList params_to_sign = ParamList() << Param(u"format_id"_s, QString::number(service_->format()))
|
||||
<< Param(u"track_id"_s, QString::number(song_id_));
|
||||
|
||||
Reference in New Issue
Block a user