mirror of
https://github.com/godotengine/godot.git
synced 2024-12-26 12:53:47 +00:00
Fix msvc compile error
This commit is contained in:
parent
6bfaa0f12c
commit
16b3973c75
@ -220,7 +220,7 @@ void SMBPitchShift::smbFft(float *fftBuffer, long fftFrameSize, long sign)
|
||||
*p1 = *p2; *p2 = temp;
|
||||
}
|
||||
}
|
||||
for (k = 0, le = 2; k < (long)(log(fftFrameSize)/log(2.)+.5); k++) {
|
||||
for (k = 0, le = 2; k < (long)(log((double)fftFrameSize)/log(2.)+.5); k++) {
|
||||
le <<= 1;
|
||||
le2 = le>>1;
|
||||
ur = 1.0;
|
||||
|
@ -47,7 +47,7 @@ EQ::BandProcess::BandProcess() {
|
||||
|
||||
void EQ::recalculate_band_coefficients() {
|
||||
|
||||
#define BAND_LOG( m_f ) ( log((m_f)) / log(2) )
|
||||
#define BAND_LOG( m_f ) ( log((m_f)) / log(2.) )
|
||||
|
||||
for (int i=0;i<band.size();i++) {
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user