aboutsummaryrefslogtreecommitdiff
path: root/src/iemlib1
diff options
context:
space:
mode:
authorIOhannes m zmölnig <zmoelnig@users.sourceforge.net>2006-11-12 12:57:30 +0000
committerIOhannes m zmölnig <zmoelnig@users.sourceforge.net>2006-11-12 12:57:30 +0000
commita9b5904826c3981234eda971a3a8043d5c771029 (patch)
treee46d793bea3c13b8ef0c524136bf7f6e0036bd0a /src/iemlib1
parent3760edf21b37384e6a5ec177e9712442805e8444 (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~.c10
-rw-r--r--src/iemlib1/rvu~.c2
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)