Mercurial > hg > xemacs-beta
diff src/miscplay.c @ 452:3d3049ae1304 r21-2-41
Import from CVS: tag r21-2-41
author | cvs |
---|---|
date | Mon, 13 Aug 2007 11:40:21 +0200 |
parents | 576fb035e263 |
children | 183866b06e0b |
line wrap: on
line diff
--- a/src/miscplay.c Mon Aug 13 11:39:21 2007 +0200 +++ b/src/miscplay.c Mon Aug 13 11:40:21 2007 +0200 @@ -360,8 +360,11 @@ *outbuf = dest = miscplay_sndbuf; while (count--) - *dest++ = (unsigned char)(((int)*(src)++ + - (int)*(src)++) / 2); + { + *dest++ = (unsigned char)(((int)*(src) + + (int)*(src+1)) / 2); + src += 2; + } *data = src; return(rc); }