# HG changeset patch # User Chris Cannam # Date 1466667952 -3600 # Node ID 63b73a21bccd063cf3344143123c022940271f81 # Parent d9698ee9365968b7aaa9c7241dbe670588423fc1 Small fix to compiler warning diff -r d9698ee93659 -r 63b73a21bccd plugin/plugins/SamplePlayer.cpp --- a/plugin/plugins/SamplePlayer.cpp Mon Jun 20 12:00:32 2016 +0100 +++ b/plugin/plugins/SamplePlayer.cpp Thu Jun 23 08:45:52 2016 +0100 @@ -571,7 +571,7 @@ if (m_concertA) { ratio *= *m_concertA / 440.f; } - if (m_basePitch && n != *m_basePitch) { + if (m_basePitch && float(n) != *m_basePitch) { ratio *= powf(1.059463094f, float(n) - *m_basePitch); } }