mirror of
https://github.com/RGBCube/serenity
synced 2025-06-01 10:58:11 +00:00
AK: Make Vector use size_t for its size and capacity
This commit is contained in:
parent
9c6f7d3e7d
commit
ceec1a7d38
94 changed files with 323 additions and 317 deletions
|
@ -249,13 +249,13 @@ RefPtr<Gfx::Bitmap> 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.
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue