summaryrefslogtreecommitdiffhomepage
path: root/src/chunk-region.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/chunk-region.cpp')
-rw-r--r--src/chunk-region.cpp4
1 files changed, 2 insertions, 2 deletions
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);