From 3b3d362d560a79473fcc3cc77fe7ab74cb3e5deb Mon Sep 17 00:00:00 2001 From: John Emmas Date: Tue, 9 Mar 2021 11:33:19 +0000 Subject: [PATCH] Add a cast when using 'abs' (to keep MSVC happy) --- libs/ardour/location.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libs/ardour/location.cc b/libs/ardour/location.cc index a9997cc80f..a83963afe9 100644 --- a/libs/ardour/location.cc +++ b/libs/ardour/location.cc @@ -1513,7 +1513,7 @@ Locations::range_starts_at(samplepos_t pos, samplecnt_t slop, bool incl) const continue; } - sampleoffset_t delta = std::abs(pos - (*i)->start()); + sampleoffset_t delta = std::abs((double)(pos - (*i)->start())); if (delta == 0) { return *i;