CollectionQuery: Add F for float

This commit is contained in:
Jonas Kvinge 2023-10-14 22:08:50 +02:00
parent cd534bbda7
commit 310b7b9065
1 changed files with 1 additions and 1 deletions

View File

@ -204,7 +204,7 @@ void CollectionQuery::AddWhereRating(const QVariant &value, const QString &op) {
// You can't query the database for a float, due to float precision errors,
// So we have to use a certain tolerance, so that the searched value is definetly included.
const float tolerance = 0.001;
const float tolerance = 0.001F;
if (op == "<") {
AddWhere("rating", parsed_rating-tolerance, "<");
}