Mercurial > audlegacy-plugins
diff src/adplug/core/dmo.cxx @ 2239:224ebe9caaac
eliminate warnings
| author | Yoshiki Yazawa <yaz@cc.rim.or.jp> |
|---|---|
| date | Mon, 17 Dec 2007 18:35:35 +0900 |
| parents | 4709ce4e209e |
| children |
line wrap: on
line diff
--- a/src/adplug/core/dmo.cxx Mon Dec 17 18:04:53 2007 +0900 +++ b/src/adplug/core/dmo.cxx Mon Dec 17 18:35:35 2007 +0900 @@ -349,8 +349,10 @@ if (opos + cx >= oend) return -1; - for (int i = 0; i < cx; i++) - *opos++ = *(opos - ax); + for (int i = 0; i < cx; i++) { + *opos = *(opos - ax); + opos++; + } continue; } @@ -370,8 +372,10 @@ if (opos + bx + cx >= oend) return -1; - for (i = 0; i < cx; i++) - *opos++ = *(opos - ax); + for (i = 0; i < cx; i++) { + *opos = *(opos - ax); + opos++; + } for (i = 0; i < bx; i++) *opos++ = *ipos++; @@ -395,8 +399,10 @@ if (opos + ax + cx >= oend) return -1; - for (i = 0; i < cx; i++) - *opos++ = *(opos - bx); + for (i = 0; i < cx; i++) { + *opos = *(opos - bx); + opos++; + } for (i = 0; i < ax; i++) *opos++ = *ipos++;
