From: notaz Date: Fri, 28 Aug 2009 21:20:19 +0000 (+0000) Subject: bugfix X-Git-Tag: v1.85~284 X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8a19f430a526d011f593b633ea3811fc534123ea;p=picodrive.git bugfix git-svn-id: file:///home/notaz/opt/svn/PicoDrive@765 be3aeb3a-fb24-0410-a615-afba39da0efa --- diff --git a/pico/sound/sound.c b/pico/sound/sound.c index a7510db..b1204e2 100644 --- a/pico/sound/sound.c +++ b/pico/sound/sound.c @@ -416,8 +416,8 @@ PICO_INTERNAL void PsndGetSamplesMS(void) // upmix to "stereo" if needed if (stereo) { - int i = length, *p = (void *)PsndOut; - while (i--) + int i, *p; + for (i = length, p = (void *)PsndOut; i > 0; i--, p++) *p |= *p << 16; }