# HG changeset patch # User Chris Cannam # Date 1476968705 -3600 # Node ID af4a1522ef1585686d3d2d9bc9433588f88f4ccc # Parent a75fdb8b368c706a4c033090dcdc4e9e50ebf681 Fix compiler warnings diff -r a75fdb8b368c -r af4a1522ef15 src/vamp-hostsdk/PluginInputDomainAdapter.cpp --- a/src/vamp-hostsdk/PluginInputDomainAdapter.cpp Fri Oct 14 17:00:34 2016 +0100 +++ b/src/vamp-hostsdk/PluginInputDomainAdapter.cpp Thu Oct 20 14:05:05 2016 +0100 @@ -460,8 +460,8 @@ Kiss::kiss_fftr(m_cfg, m_ri, m_cbuf); for (int i = 0; i <= m_blockSize/2; ++i) { - m_freqbuf[c][i * 2] = m_cbuf[i].r; - m_freqbuf[c][i * 2 + 1] = m_cbuf[i].i; + m_freqbuf[c][i * 2] = float(m_cbuf[i].r); + m_freqbuf[c][i * 2 + 1] = float(m_cbuf[i].i); } } @@ -509,8 +509,8 @@ Kiss::kiss_fftr(m_cfg, m_ri, m_cbuf); for (int i = 0; i <= m_blockSize/2; ++i) { - m_freqbuf[c][i * 2] = m_cbuf[i].r; - m_freqbuf[c][i * 2 + 1] = m_cbuf[i].i; + m_freqbuf[c][i * 2] = float(m_cbuf[i].r); + m_freqbuf[c][i * 2 + 1] = float(m_cbuf[i].i); } } diff -r a75fdb8b368c -r af4a1522ef15 src/vamp-sdk/ext/kiss_fft.c --- a/src/vamp-sdk/ext/kiss_fft.c Fri Oct 14 17:00:34 2016 +0100 +++ b/src/vamp-sdk/ext/kiss_fft.c Thu Oct 20 14:05:05 2016 +0100 @@ -223,7 +223,7 @@ int twidx=0; Fout[ k ] = scratch[0]; for (q=1;q
=Norig) twidx-=Norig; C_MUL(t,scratch[q] , twiddles[twidx] ); C_ADDTO( Fout[ k ] ,t);