mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-02 22:30:31 +00: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: 5ced9a3dfb
Pull-request: https://github.com/SerenityOS/serenity/pull/7413
1 changed files with 1 additions and 1 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue