From a647f56b3a07da357b2ef5fd95b09df6dfb72a31 Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Wed, 28 Feb 2024 22:30:16 +0100 Subject: fix a couple msvc warnings --- src/chunk-region.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/chunk-region.cpp b/src/chunk-region.cpp index 8bf73231..4bb2be7b 100644 --- a/src/chunk-region.cpp +++ b/src/chunk-region.cpp @@ -156,10 +156,10 @@ auto chunk::make_pass_region(const pred& f, bool debug) -> pass_region constexpr auto dir = fours[Dir]; const auto pos = pos0 + dir; if constexpr(!Edge && (Dir == L || Dir == R)) - if ((uint32_t)pos.x() >= div_count.x()) [[unlikely]] + if ((uint32_t)pos.x() >= (uint32_t)div_count.x()) [[unlikely]] return; if constexpr(!Edge && (Dir == U || Dir == D)) - if ((uint32_t)pos.y() >= div_count.y()) [[unlikely]] + if ((uint32_t)pos.y() >= (uint32_t)div_count.y()) [[unlikely]] return; if (tmp.check_visited(ret.bits, pos, Dir) && check_pos(*this, nbs, pos, dir, f)) tmp.append(ret.bits, pos); -- cgit v1.2.3