region: in definition of ::end() use a slightly faster but entirely equivalent expression

This commit is contained in:
Paul Davis 2023-11-03 15:06:03 -06:00
parent 7d0b223330
commit c4f8c84a75

View File

@ -2197,7 +2197,7 @@ Region::end() const
/* one day we might want to enforce _position, _start and _length (or
some combination thereof) all being in the same time domain.
*/
return position() + _length.val();
return _length.val().end();
}
timepos_t