FilterParser: Silence double / float warning

This commit is contained in:
Jonas Kvinge 2023-07-12 16:27:28 +02:00
parent a1ffc5c33b
commit 00372e85c5
1 changed files with 1 additions and 1 deletions

View File

@ -655,7 +655,7 @@ float FilterParser::parseRating(const QString &rating_str) {
float rating_input = rating_str.toFloat(&ok);
// is valid int from 0-5: convert to float
if (ok && rating_input >= 0 && rating_input <= 5) {
rating = rating_input / 5.;
rating = rating_input / 5.0F;
}
// check if the search is a float