13
0

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

This commit is contained in:
Paul Davis 2021-12-05 09:24:13 -07:00
parent 887cd070b0
commit 17832e9f86

View File

@ -301,7 +301,7 @@ MidiSource::midi_write (const Lock& lm,
{ {
const timecnt_t ret = write_unlocked (lm, source, source_start, cnt); const timecnt_t ret = write_unlocked (lm, source, source_start, cnt);
if (cnt == std::numeric_limits<timecnt_t>::max()) { if (cnt == timecnt_t::max (cnt.time_domain())) {
invalidate(lm); invalidate(lm);
} else { } else {
_capture_length += cnt.samples(); _capture_length += cnt.samples();