diff --git a/fft.c b/fft.c index 63b082f..33e7ce6 100644 --- a/fft.c +++ b/fft.c @@ -84,18 +84,23 @@ int fix_fft(fixed fr[], fixed fi[], int m, int inverse) { if(inverse) { - /* variable scaling, depending upon data */ - shift = 0; - for(i=0; i 16383 || m > 16383) + { + shift = 1; + break; + } + } + if(shift) ++scale; } else {