summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2024-01-10 22:32:41 +0100
committerStanislaw Halik <sthalik@misaki.pl>2024-01-10 22:32:41 +0100
commit126f9cc4a718b0d395ac75732488489bf0363909 (patch)
tree7b31b454cdc15dfacd52afee18bf9eac62a5d7b1
parenteae6f6f08936452865abff0a388ba0fa3e719b53 (diff)
fix clang build
-rw-r--r--wall-tileset-tool/main.cpp4
-rw-r--r--wall-tileset-tool/main.hpp2
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<group>{};
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<group>& groups;
- size_t& n_frames;
+ uint32_t& n_frames;
cv::Mat4b& dest;
int& error;
};