diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2024-02-28 22:30:16 +0100 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2024-02-28 22:30:16 +0100 |
commit | a647f56b3a07da357b2ef5fd95b09df6dfb72a31 (patch) | |
tree | 9369c1541d59442da006a4ebed672765286d79a1 /src | |
parent | efa8631ad22c370f88950e2454665c5f10eb7452 (diff) |
fix a couple msvc warnings
Diffstat (limited to 'src')
-rw-r--r-- | src/chunk-region.cpp | 4 |
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); |