Follow-up of 3fce8398f0 - Fixed build warnings

This commit is contained in:
enricoturri1966 2021-03-31 08:54:58 +02:00
parent 7007bf665c
commit ab3890dab5

View File

@ -606,7 +606,7 @@ void GCodeProcessor::TimeProcessor::post_process(const std::string& filename)
} }
if (is_last) { if (is_last) {
if (std::distance(machine.stop_times.begin(), it_stop) == machine.stop_times.size() - 1) if (std::distance(machine.stop_times.begin(), it_stop) == static_cast<ptrdiff_t>(machine.stop_times.size() - 1))
export_line += format_line_M73_stop_int(machine.line_m73_stop_mask.c_str(), to_export_stop); export_line += format_line_M73_stop_int(machine.line_m73_stop_mask.c_str(), to_export_stop);
else else
export_line += format_line_M73_stop_float(machine.line_m73_stop_mask.c_str(), time_in_last_minute(it_stop->elapsed_time - it->elapsed_time)); export_line += format_line_M73_stop_float(machine.line_m73_stop_mask.c_str(), time_in_last_minute(it_stop->elapsed_time - it->elapsed_time));