From 126f9cc4a718b0d395ac75732488489bf0363909 Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Wed, 10 Jan 2024 22:32:41 +0100 Subject: fix clang build --- wall-tileset-tool/main.cpp | 4 ++-- wall-tileset-tool/main.hpp | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/wall-tileset-tool/main.cpp b/wall-tileset-tool/main.cpp index c9bb3a72..e9dd6355 100644 --- a/wall-tileset-tool/main.cpp +++ b/wall-tileset-tool/main.cpp @@ -189,7 +189,7 @@ bool do_group(state st, size_t i, size_t j, Group& new_group) fm_abort("can't find ground '%d'", (int)j); }(); - auto count = 0uz, start = st.n_frames; + uint32_t count = 0, start = st.n_frames; new_group = old_group; new_group.is_defined = true; new_group.pixel_size = Vector2ui(expected_size); @@ -398,7 +398,7 @@ int main(int argc, char** argv) auto new_atlas = wall_atlas_def{}; auto dest = cv::Mat4b{}; auto error = EX_DATAERR; - size_t n_frames = 0; + uint32_t n_frames = 0; auto groups = std::vector{}; groups.reserve(std::size(Wall::Direction::groups)); diff --git a/wall-tileset-tool/main.hpp b/wall-tileset-tool/main.hpp index 942ecf6c..0f6d9633 100644 --- a/wall-tileset-tool/main.hpp +++ b/wall-tileset-tool/main.hpp @@ -29,7 +29,7 @@ struct state const wall_atlas_def& old_atlas; wall_atlas_def& new_atlas; std::vector& groups; - size_t& n_frames; + uint32_t& n_frames; cv::Mat4b& dest; int& error; }; -- cgit v1.2.3