mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-06 06:44:57 +01:00
Add a cast when using 'abs' (to keep MSVC happy)
This commit is contained in:
parent
bdd362ee24
commit
3b3d362d56
1 changed files with 1 additions and 1 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue