13
0

remove another instance of std::numeric_limits<timecnt_t>::max()

This commit is contained in:
Paul Davis 2021-12-05 09:23:05 -07:00
parent d7fdec2ef5
commit a72108636b

View File

@ -344,7 +344,7 @@ SMFSource::write_unlocked (const Lock& lock,
break;
}
if ((cnt != std::numeric_limits<timecnt_t>::max()) &&
if ((cnt != timecnt_t::max (cnt.time_domain())) &&
(time > pos_samples + _capture_length + cnt_samples)) {
/* The diskstream doesn't want us to write everything, and this
event is past the end of this block, so we're done for now. */