Skip to content

Commit

Permalink
Avoid wrong integer promotion
Browse files Browse the repository at this point in the history
  • Loading branch information
joto committed Jun 27, 2020
1 parent 9fc63bc commit 378305f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions include/osmium/area/detail/basic_assembler.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ namespace osmium {
// Maximum recursion depth, stops complex multipolygons from
// breaking everything.
enum : unsigned {
max_depth = 20
max_depth = 20U
};

struct slocation {
Expand Down Expand Up @@ -842,7 +842,7 @@ namespace osmium {
find_candidates(candidates, loc_done, xrings, cand);
} catch (const exceeded_max_depth&) {
if (m_config.debug_level > 0) {
std::cerr << " Exceeded max depth (" << max_depth << ")\n";
std::cerr << " Exceeded max depth (" << static_cast<unsigned>(max_depth) << ")\n";
}
return false;
}
Expand Down

0 comments on commit 378305f

Please sign in to comment.