mirror of
https://github.com/strawberrymusicplayer/strawberry
synced 2025-01-21 05:07:06 +01:00
Use static_cast
This commit is contained in:
parent
f1105393da
commit
1cec48e8f8
@ -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];
|
||||||
|
Loading…
Reference in New Issue
Block a user