Update of /cvsroot/pure-data/externals/iemlib/src/iemlib1 In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv6334/iemlib1
Modified Files: prvu~.c rvu~.c Log Message: reduced compiler warnings by avoiding variable shadowing
Index: rvu~.c =================================================================== RCS file: /cvsroot/pure-data/externals/iemlib/src/iemlib1/rvu~.c,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** rvu~.c 8 Nov 2006 13:24:10 -0000 1.1 --- rvu~.c 12 Nov 2006 12:57:30 -0000 1.2 *************** *** 85,89 **** t_rvu_tilde *x = (t_rvu_tilde *)(w[2]); int n = (int)(w[3]); ! t_float pow, sum=x->x_sum_rms; int i;
--- 85,89 ---- t_rvu_tilde *x = (t_rvu_tilde *)(w[2]); int n = (int)(w[3]); ! t_float sum=x->x_sum_rms; int i;
Index: prvu~.c =================================================================== RCS file: /cvsroot/pure-data/externals/iemlib/src/iemlib1/prvu~.c,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** prvu~.c 8 Nov 2006 13:24:09 -0000 1.1 --- prvu~.c 12 Nov 2006 12:57:30 -0000 1.2 *************** *** 115,119 **** 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; int i;
--- 115,119 ---- t_prvu_tilde *x = (t_prvu_tilde *)(w[2]); int n = (int)(w[3]); ! t_float peak = x->x_cur_peak, power, sum=x->x_sum_rms; int i;
*************** *** 122,129 **** for(i=0; i<n; i++) { ! pow = in[i]*in[i]; ! if(pow > peak) ! peak = pow; ! sum += pow; } x->x_cur_peak = peak; --- 122,129 ---- for(i=0; i<n; i++) { ! power = in[i]*in[i]; ! if(power > peak) ! peak = power; ! sum += power; } x->x_cur_peak = peak;