Update of /cvsroot/pure-data/pd/src In directory sc8-pr-cvs1:/tmp/cvs-serv1229
Modified Files: Tag: devel_0_37 d_arithmetic.c Log Message: conform to standard C!
Index: d_arithmetic.c =================================================================== RCS file: /cvsroot/pure-data/pd/src/d_arithmetic.c,v retrieving revision 1.1.1.1.16.5 retrieving revision 1.1.1.1.16.6 diff -C2 -d -r1.1.1.1.16.5 -r1.1.1.1.16.6 *** d_arithmetic.c 29 Dec 2003 02:01:57 -0000 1.1.1.1.16.5 --- d_arithmetic.c 30 Dec 2003 16:38:33 -0000 1.1.1.1.16.6 *************** *** 531,537 **** t_float *in = (t_float *)(w[1]); t_float f = *(t_float *)(w[2]); - if(f) f = 1./f; t_float *out = (t_float *)(w[3]); int n = (int)(w[4]); while (n--) *out++ = *in++ * f; return (w+5); --- 531,537 ---- t_float *in = (t_float *)(w[1]); t_float f = *(t_float *)(w[2]); t_float *out = (t_float *)(w[3]); int n = (int)(w[4]); + if(f) f = 1./f; while (n--) *out++ = *in++ * f; return (w+5);