summaryrefslogtreecommitdiffhomepage
path: root/src/wall-atlas.cpp
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2023-11-23 07:39:31 +0100
committerStanislaw Halik <sthalik@misaki.pl>2023-11-23 07:39:31 +0100
commit8baf254e2b8015b517237e0ff8ee6417533b51dd (patch)
tree563d03fe277144f7d78b4cc3542fdc8a5b2d5904 /src/wall-atlas.cpp
parentf3468efd271b6a943d201886ca30bfc81b16670c (diff)
c
Diffstat (limited to 'src/wall-atlas.cpp')
-rw-r--r--src/wall-atlas.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/wall-atlas.cpp b/src/wall-atlas.cpp
index 9c544896..a8fe168f 100644
--- a/src/wall-atlas.cpp
+++ b/src/wall-atlas.cpp
@@ -22,8 +22,8 @@ void wall_atlas::validate(const wall_atlas& a, const ImageView2D& img) noexcept(
for (const auto& frame : a.raw_frame_array())
{
fm_soft_assert(frame.offset < Vector2ui{(unsigned)width, (unsigned)height});
- fm_soft_assert(frame.offset.y() + iTILE_SIZE.z() <= height);
- fm_soft_assert(frame.offset.x() < iTILE_SIZE2.x());
+ fm_soft_assert((int)frame.offset.y() + iTILE_SIZE.z() <= (int)height);
+ fm_soft_assert((int)frame.offset.x() < iTILE_SIZE2.x());
// todo check frame offset + size based on wall_atlas::expected_size()
}