ImageDecoder: Fix narrowing cast of loop count

This commit is contained in:
Jean-Baptiste Boric 2021-05-23 16:32:19 +02:00 committed by Andreas Kling
parent 4d332f3930
commit 5ced9a3dfb
Notes: sideshowbarker 2024-07-18 17:30:24 +09:00

View File

@ -62,7 +62,7 @@ Messages::ImageDecoderServer::DecodeImageResponse ClientConnection::decode_image
durations.append(frame.duration);
}
return { decoder->is_animated(), decoder->loop_count(), bitmaps, durations };
return { decoder->is_animated(), static_cast<u32>(decoder->loop_count()), bitmaps, durations };
}
}