Avoid doing arithmetic with void pointer

Address Solaris Studio compiler warning (reported by Douglas Carmichael).

CC src/sound_pulseaudio.o
"src/sound_pulseaudio.c", line 53: warning: pointer to void or function
used in arithmetic

Signed-off-by: Claudio Matsuoka <cmatsuoka@gmail.com>
master
Claudio Matsuoka 13 years ago
parent 8f13824eec
commit 31b192ef95
  1. 2
      src/sound_pulseaudio.c

@ -50,7 +50,7 @@ static void play(void *b, int i)
do {
if ((j = pa_simple_write(s, b, i, &error)) > 0) {
i -= j;
b += j;
b = (char *)b + j;
} else
break;
} while (i);

Loading…
Cancel
Save