Use static_cast

This commit is contained in:
Jonas Kvinge 2020-07-18 04:25:15 +02:00
parent f1105393da
commit 1cec48e8f8
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) { for (int i = 0; i < width; ++i) {
Rgb rgb; Rgb rgb;
const int start = i * frames_.count() / width; const int start = i * frames_.count() / width;
const int end = std::max((i + 1) * frames_.count() / width, start + 1); const int end = std::max((i + 1) * static_cast<int>(frames_.count()) / width, start + 1);
for (int j = start; j < end; j++) { for (int j = start; j < end; j++) {
const Rgb& frame = frames_[j]; const Rgb& frame = frames_[j];