From 5ced9a3dfbc860714b991278e1924201c944212c Mon Sep 17 00:00:00 2001 From: Jean-Baptiste Boric Date: Sun, 23 May 2021 16:32:19 +0200 Subject: [PATCH] ImageDecoder: Fix narrowing cast of loop count --- Userland/Services/ImageDecoder/ClientConnection.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Userland/Services/ImageDecoder/ClientConnection.cpp b/Userland/Services/ImageDecoder/ClientConnection.cpp index fb4d089ede7..08f75b930bf 100644 --- a/Userland/Services/ImageDecoder/ClientConnection.cpp +++ b/Userland/Services/ImageDecoder/ClientConnection.cpp @@ -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(decoder->loop_count()), bitmaps, durations }; } }