# HG changeset patch # User Chris Cannam # Date 1471362562 -3600 # Node ID 16955f929d377f80412f86f7f51e104749993d38 # Parent 79f7af8873c9049b112c8f80a4f3c4d457fd71a6 Compiler warning fixes diff -r 79f7af8873c9 -r 16955f929d37 plugin/plugins/SamplePlayer.cpp --- a/plugin/plugins/SamplePlayer.cpp Mon Mar 21 10:02:21 2016 +0000 +++ b/plugin/plugins/SamplePlayer.cpp Tue Aug 16 16:49:22 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); } }