# HG changeset patch # User Chris Cannam # Date 1576687630 0 # Node ID ac1a75151fc980b313faf4dd49c4bafe05a250eb # Parent 02721bb9c4f07dadfe5fd32e2ac9d6f6958749a5 isnan(int) is meaningless, and msvc refuses it as ambiguous diff -r 02721bb9c4f0 -r ac1a75151fc9 TempogramPlugin.cpp --- a/TempogramPlugin.cpp Thu Oct 16 15:14:02 2014 +0100 +++ b/TempogramPlugin.cpp Wed Dec 18 16:47:10 2019 +0000 @@ -14,6 +14,8 @@ #include "TempogramPlugin.h" +#include + using Vamp::FFT; using Vamp::RealTime; using namespace std; @@ -361,7 +363,7 @@ d1.description = "Cyclic tempogram calculated by \"octave folding\" the DFT tempogram"; d1.unit = ""; d1.hasFixedBinCount = true; - d1.binCount = m_cyclicTempogramOctaveDivider > 0 && !isnan(m_cyclicTempogramOctaveDivider) ? m_cyclicTempogramOctaveDivider : 0; + d1.binCount = m_cyclicTempogramOctaveDivider > 0 ? m_cyclicTempogramOctaveDivider : 0; d1.hasKnownExtents = false; d1.isQuantized = false; d1.sampleType = OutputDescriptor::FixedSampleRate;