13
0

Add a cast when using 'abs' (to keep MSVC happy)

This commit is contained in:
John Emmas 2021-03-09 11:33:19 +00:00
parent bdd362ee24
commit 3b3d362d56

View File

@ -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;