summaryrefslogtreecommitdiffhomepage
path: root/anim-crop-tool
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2023-03-18 23:42:07 +0100
committerStanislaw Halik <sthalik@misaki.pl>2023-03-18 23:42:07 +0100
commit4d9a82b720c8ce74b94f43f72ddd819ef21abbdf (patch)
treec0a5d21b8e19fbb60c286faec8e302e6f32b6679 /anim-crop-tool
parent32b8c22828315292857e2cd9909fba620f30ff70 (diff)
pre-declare integer types without cstddef/cstdint
Diffstat (limited to 'anim-crop-tool')
-rw-r--r--anim-crop-tool/main.cpp4
1 files changed, 2 insertions, 2 deletions
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++)
{