diff --git a/include/gp/system/logging_segment.hpp b/include/gp/system/logging_segment.hpp index ca41faf..7acf644 100644 --- a/include/gp/system/logging_segment.hpp +++ b/include/gp/system/logging_segment.hpp @@ -71,7 +71,7 @@ struct static_logging_segment : virtual_logging_segment{ if(wrap_around.has_value()) { size_t idx = wrap_around.value(); - size_t override_prio = gp::min_of(data.begin(), data.end(), [](auto v){ return v.priority; }); + int16_t override_prio = gp::min_of(data.begin(), data.end(), [](auto v){ return v.priority; }); while(prio >= override_prio) { if(data[idx].priority == override_prio) { data[idx] = prepared;