diff options
author | IOhannes m zmölnig <zmoelnig@users.sourceforge.net> | 2006-11-12 12:57:30 +0000 |
---|---|---|
committer | IOhannes m zmölnig <zmoelnig@users.sourceforge.net> | 2006-11-12 12:57:30 +0000 |
commit | a9b5904826c3981234eda971a3a8043d5c771029 (patch) | |
tree | e46d793bea3c13b8ef0c524136bf7f6e0036bd0a /src/iemlib1 | |
parent | 3760edf21b37384e6a5ec177e9712442805e8444 (diff) |
reduced compiler warnings by avoiding variable shadowing
svn path=/trunk/externals/iemlib/; revision=6271
Diffstat (limited to 'src/iemlib1')
-rw-r--r-- | src/iemlib1/prvu~.c | 10 | ||||
-rw-r--r-- | src/iemlib1/rvu~.c | 2 |
2 files changed, 6 insertions, 6 deletions
diff --git a/src/iemlib1/prvu~.c b/src/iemlib1/prvu~.c index 17fe143..aed7c53 100644 --- a/src/iemlib1/prvu~.c +++ b/src/iemlib1/prvu~.c @@ -114,17 +114,17 @@ static t_int *prvu_tilde_perform(t_int *w) t_float *in = (t_float *)(w[1]); t_prvu_tilde *x = (t_prvu_tilde *)(w[2]); int n = (int)(w[3]); - t_float peak = x->x_cur_peak, pow, sum=x->x_sum_rms; + t_float peak = x->x_cur_peak, power, sum=x->x_sum_rms; int i; if(x->x_started) { for(i=0; i<n; i++) { - pow = in[i]*in[i]; - if(pow > peak) - peak = pow; - sum += pow; + power = in[i]*in[i]; + if(power > peak) + peak = power; + sum += power; } x->x_cur_peak = peak; x->x_sum_rms = sum; diff --git a/src/iemlib1/rvu~.c b/src/iemlib1/rvu~.c index 95a874a..21638d5 100644 --- a/src/iemlib1/rvu~.c +++ b/src/iemlib1/rvu~.c @@ -84,7 +84,7 @@ static t_int *rvu_tilde_perform(t_int *w) t_float *in = (t_float *)(w[1]); t_rvu_tilde *x = (t_rvu_tilde *)(w[2]); int n = (int)(w[3]); - t_float pow, sum=x->x_sum_rms; + t_float sum=x->x_sum_rms; int i; if(x->x_started) |