From d7fdec2ef597a1d450d50434bcee8023b160fa89 Mon Sep 17 00:00:00 2001 From: Paul Davis Date: Sun, 5 Dec 2021 09:22:02 -0700 Subject: [PATCH] remove another instance of std::numeric_limits::max() --- gtk2_ardour/time_selection.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gtk2_ardour/time_selection.cc b/gtk2_ardour/time_selection.cc index 4fff952356..aaea910ea6 100644 --- a/gtk2_ardour/time_selection.cc +++ b/gtk2_ardour/time_selection.cc @@ -93,7 +93,7 @@ TimeSelection::start_time () const return timepos_t(); } - timepos_t first = std::numeric_limits::max(); + timepos_t first = timepos_t::max (front().start().time_domain()); for (std::list::const_iterator i = begin(); i != end(); ++i) { if ((*i).start() < first) {