changeset 1189:63b73a21bccd spectrogram-minor-refactor

Small fix to compiler warning
author Chris Cannam
date Thu, 23 Jun 2016 08:45:52 +0100
parents d9698ee93659
children f6998e304b36
files plugin/plugins/SamplePlayer.cpp
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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);
 	}
     }