d032ed6748d4 — Chris Cannam 6 months ago
Win build fix
1 files changed, 3 insertions(+), 3 deletions(-)

M src/common/Resampler.cpp
M src/common/Resampler.cpp +3 -3
@@ 192,7 192,7 @@ D_IPP::D_IPP(Resampler::Quality /* quali
     //    elements with indices greater than m_time + length for the
     //    right filter wing for the last element.
     
-    m_history = int(m_window * 0.5 * max(1.0, 1.0 / m_factor)) + 1;
+    m_history = int(m_window * 0.5 * std::max(1.0, 1.0 / m_factor)) + 1;
 
     m_state = new IppsResamplingPolyphase_32f *[m_channels];
 

          
@@ 305,7 305,7 @@ D_IPP::resample(float *const BQ_R__ *con
 {
     if (ratio > m_factor) {
         m_factor = ratio;
-        m_history = int(m_window * 0.5 * max(1.0, 1.0 / m_factor)) + 1;
+        m_history = int(m_window * 0.5 * std::max(1.0, 1.0 / m_factor)) + 1;
     }
 
     if (m_debugLevel > 2) {

          
@@ 348,7 348,7 @@ D_IPP::resampleInterleaved(float *const 
 {
     if (ratio > m_factor) {
         m_factor = ratio;
-        m_history = int(m_window * 0.5 * max(1.0, 1.0 / m_factor)) + 1;
+        m_history = int(m_window * 0.5 * std::max(1.0, 1.0 / m_factor)) + 1;
     }
 
     if (m_debugLevel > 2) {