X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?p=picodrive.git;a=blobdiff_plain;f=pico%2Fsound%2Fsound.c;fp=pico%2Fsound%2Fsound.c;h=95aac128585308e955b9ef636d72436b55061ebe;hp=fc71b74193e32a8c3200d1a79e7cb4d515a7e1f0;hb=48c9e01be8ad93a7902e22f9ad07aba4527e6572;hpb=a0b95da11240b4e936e4bab64a002db394130bb0 diff --git a/pico/sound/sound.c b/pico/sound/sound.c index fc71b74..95aac12 100644 --- a/pico/sound/sound.c +++ b/pico/sound/sound.c @@ -265,7 +265,7 @@ PICO_INTERNAL void PsndClear(void) memset32((int *) PicoIn.sndOut, 0, len); // assume PicoIn.sndOut to be aligned else { short *out = PicoIn.sndOut; - if ((long)out & 2) { *out++ = 0; len--; } + if ((uintptr_t)out & 2) { *out++ = 0; len--; } memset32((int *) out, 0, len/2); if (len & 1) out[len-1] = 0; }