diff plugin/plugins/SamplePlayer.cpp @ 1189:63b73a21bccd spectrogram-minor-refactor

Small fix to compiler warning
author Chris Cannam
date Thu, 23 Jun 2016 08:45:52 +0100
parents b14064bd1f97
children 1c9bbbb6116a
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);
 	}
     }