mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-01-08 04:15:23 +03:00
ImageDecoder: Fix narrowing cast of loop count
This commit is contained in:
parent
4d332f3930
commit
5ced9a3dfb
Notes:
sideshowbarker
2024-07-18 17:30:24 +09:00
Author: https://github.com/boricj Commit: https://github.com/SerenityOS/serenity/commit/5ced9a3dfbc Pull-request: https://github.com/SerenityOS/serenity/pull/7413
@ -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 };
|
||||
}
|
||||
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user