From 378305f4cf5acbcaee0923a9a79c4c30ae042e0a Mon Sep 17 00:00:00 2001 From: Jochen Topf Date: Sat, 27 Jun 2020 22:37:04 +0200 Subject: [PATCH] Avoid wrong integer promotion --- include/osmium/area/detail/basic_assembler.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/osmium/area/detail/basic_assembler.hpp b/include/osmium/area/detail/basic_assembler.hpp index 569bcc197..be0d6999c 100644 --- a/include/osmium/area/detail/basic_assembler.hpp +++ b/include/osmium/area/detail/basic_assembler.hpp @@ -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 { @@ -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(max_depth) << ")\n"; } return false; }