mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-07 23:35:03 +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;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
sampleoffset_t delta = std::abs(pos - (*i)->start());
|
sampleoffset_t delta = std::abs((double)(pos - (*i)->start()));
|
||||||
|
|
||||||
if (delta == 0) {
|
if (delta == 0) {
|
||||||
return *i;
|
return *i;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue