diff options
-rw-r--r-- | desiredata/src/d_fftroutine.c | 2 | ||||
-rw-r--r-- | desiredata/src/d_mayer_fft.c | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/desiredata/src/d_fftroutine.c b/desiredata/src/d_fftroutine.c index 4a44ee61..172bec2d 100644 --- a/desiredata/src/d_fftroutine.c +++ b/desiredata/src/d_fftroutine.c @@ -308,7 +308,7 @@ void build_fft_network(FFT_NET *fft_net, int n, int window_type) /* network definition */ fft_net->n = n; fft_net->bps = bps = n/2; - for (i = 0, j = n; j > 1; j >>= 1, i++); + for (i = 0, j = n; j > 1; j >>= 1, i++) {} fft_net->stages = stages = i; fft_net->direction = FORWARD; fft_net->window_type = window_type; diff --git a/desiredata/src/d_mayer_fft.c b/desiredata/src/d_mayer_fft.c index 74ee1c76..563f02ba 100644 --- a/desiredata/src/d_mayer_fft.c +++ b/desiredata/src/d_mayer_fft.c @@ -228,13 +228,13 @@ REAL c1,s1,s2,c2,s3,c3,s4,c4; for (k1=1,k2=0;k1<n;k1++) { REAL aa; - for (k=n>>1; (!((k2^=k)&k)); k>>=1); + for (k=n>>1; (!((k2^=k)&k)); k>>=1) {} if (k1>k2) { aa=fz[k1];fz[k1]=fz[k2];fz[k2]=aa; } } - for ( k=0 ; (1<<k)<n ; k++ ); + for ( k=0 ; (1<<k)<n ; k++ ) {} k &= 1; if (k==0) { |