From ceec1a7d38d4c8941dbf537b85bd50f0030ffbec Mon Sep 17 00:00:00 2001 From: Andreas Kling Date: Tue, 25 Feb 2020 14:49:47 +0100 Subject: AK: Make Vector use size_t for its size and capacity --- Libraries/LibGfx/GIFLoader.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'Libraries/LibGfx/GIFLoader.cpp') diff --git a/Libraries/LibGfx/GIFLoader.cpp b/Libraries/LibGfx/GIFLoader.cpp index 2f92afe67e..2c8c1afd39 100644 --- a/Libraries/LibGfx/GIFLoader.cpp +++ b/Libraries/LibGfx/GIFLoader.cpp @@ -249,13 +249,13 @@ RefPtr load_gif_impl(const u8* data, size_t data_size) } // We exited the block loop after finding a trailer. We should have everything needed. - printf("Image count: %d\n", images.size()); + printf("Image count: %zu\n", images.size()); if (images.is_empty()) return nullptr; - for (int i = 0; i < images.size(); ++i) { + for (size_t i = 0; i < images.size(); ++i) { auto& image = images.at(i); - printf("Image %d: %d,%d %dx%d %d bytes LZW-encoded\n", i, image.x, image.y, image.width, image.height, image.lzw_encoded_bytes.size()); + printf("Image %zu: %d,%d %dx%d %zu bytes LZW-encoded\n", i, image.x, image.y, image.width, image.height, image.lzw_encoded_bytes.size()); // FIXME: Decode the LZW-encoded bytes and turn them into an image. } -- cgit v1.2.3