diff --git a/src/moodbar/moodbarbuilder.cpp b/src/moodbar/moodbarbuilder.cpp index 757460f24..615b94a6a 100644 --- a/src/moodbar/moodbarbuilder.cpp +++ b/src/moodbar/moodbarbuilder.cpp @@ -176,7 +176,7 @@ QByteArray MoodbarBuilder::Finish(int width) { for (int i = 0; i < width; ++i) { Rgb rgb; const int start = static_cast(i * frames_.count() / width); - const int end = std::max((i + 1) * static_cast(frames_.count()) / width, start + 1); + const int end = std::max(static_cast((i + 1) * frames_.count() / width), start + 1); for (int j = start; j < end; j++) { const Rgb& frame = frames_[j];