Change static_cast

This commit is contained in:
Jonas Kvinge 2021-03-24 22:29:56 +01:00
parent 9cde537066
commit 2a92af1e09
1 changed files with 1 additions and 1 deletions

View File

@ -176,7 +176,7 @@ QByteArray MoodbarBuilder::Finish(int width) {
for (int i = 0; i < width; ++i) {
Rgb rgb;
const int start = static_cast<int>(i * frames_.count() / width);
const int end = std::max((i + 1) * static_cast<int>(frames_.count()) / width, start + 1);
const int end = std::max(static_cast<int>((i + 1) * frames_.count() / width), start + 1);
for (int j = start; j < end; j++) {
const Rgb& frame = frames_[j];