From 4d9a82b720c8ce74b94f43f72ddd819ef21abbdf Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Sat, 18 Mar 2023 23:42:07 +0100 Subject: pre-declare integer types without cstddef/cstdint --- anim-crop-tool/main.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'anim-crop-tool') diff --git a/anim-crop-tool/main.cpp b/anim-crop-tool/main.cpp index 60931c62..a2a94e63 100644 --- a/anim-crop-tool/main.cpp +++ b/anim-crop-tool/main.cpp @@ -37,7 +37,7 @@ using floormat::Serialize::anim_atlas_; struct options { String input_dir, input_file, output_dir; - std::size_t nframes = 0; + size_t nframes = 0; anim_scale scale; }; @@ -165,7 +165,7 @@ static bool load_directory(anim_group& group, options& opts, anim_atlas_& atlas) group.frames.clear(); // atlas stores its entries through a pointer. // vector::reserve() is necessary to avoid use-after-free. - group.frames.reserve((std::size_t)max-1); + group.frames.reserve((size_t)max-1); for (unsigned i = 1; i < max; i++) { -- cgit v1.2.3