From 206f7d3c40733ee965575689eb10cdb55b485f23 Mon Sep 17 00:00:00 2001 From: Paul Davis Date: Tue, 25 Jul 2023 08:50:53 -0600 Subject: [PATCH] fix compilation errors (last commit happened too early) --- libs/ardour/region.cc | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/libs/ardour/region.cc b/libs/ardour/region.cc index 6a2aa5aacf..bce89ec1b5 100644 --- a/libs/ardour/region.cc +++ b/libs/ardour/region.cc @@ -740,23 +740,23 @@ Region::set_position_internal (timepos_t const & pos) * length component, *not* the position. */ - if (td != _length.val().position.time_domain()) { + if (td != _length.val().position().time_domain()) { switch (td) { case Temporal::AudioTime: - _length = timecnt_t::from_superclock (_length.val().distance(), timepos_t::from_superclock (pos.superclocks())); + _length = timecnt_t::from_superclock (superclock_t (_length.val().distance()), timepos_t::from_superclock (pos.superclocks())); break; default: - _length = timecnt_t::from_ticks (_length.val().distance(), timepos_t::from_ticks (pos.ticks())); + _length = timecnt_t::from_ticks (int64_t (_length.val().distance()), timepos_t::from_ticks (pos.ticks())); break; } } else { /* time domain of position not changing */ - _length = timecnt_t (len.distance(), pos); + _length = timecnt_t (_length.val().distance(), pos); } } else { /* no playlist, so time domain is free to change */ - _length = timecnt_t (len.distance(), pos); + _length = timecnt_t (_length.val().distance(), pos); }