13
0

fix dangling and incorrect use of numeric_limits<double> as a control event position

This commit is contained in:
Paul Davis 2021-02-01 18:33:35 -07:00
parent 8a47dc39f1
commit 5f67bbe5e4

View File

@ -667,7 +667,7 @@ Automatable::find_next_event (timepos_t const & start, timepos_t const & end, Ev
}
}
}
return next_event.when != (start <= end ? std::numeric_limits<double>::max() : 0);
return next_event.when != (start <= end ? timepos_t::max (start.time_domain()) : timepos_t (start.time_domain()));
}
void