Fix compiler warnings

This commit is contained in:
Chris Cannam
2022-06-14 16:52:09 +01:00
parent 9ddb6b370a
commit 2c57d0ee30
4 changed files with 9 additions and 9 deletions

View File

@@ -97,7 +97,7 @@ public:
if (m_percentile == fifty) { // exact default value
return m_sortspace[n / 2];
} else {
int index = float(n) * m_percentile / 100.f;
int index = int(floorf(float(n) * m_percentile / 100.f));
if (index >= m_fill) index = m_fill - 1;
return m_sortspace[index];
}