aboutsummaryrefslogtreecommitdiffstats
path: root/src/output/osx_plugin.c
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2008-12-08 23:23:28 +0100
committerMax Kellermann <max@duempel.org>2008-12-08 23:23:28 +0100
commitb0f46c2076a861ced63b193fffebfb8f0f5d0c4c (patch)
tree7c7dd2f0b472afed3955d22d253367da89c8febb /src/output/osx_plugin.c
parent87f6f57bf69efacf20e77b8b3ab526dda76b13d1 (diff)
downloadmpd-b0f46c2076a861ced63b193fffebfb8f0f5d0c4c.tar.gz
mpd-b0f46c2076a861ced63b193fffebfb8f0f5d0c4c.tar.xz
mpd-b0f46c2076a861ced63b193fffebfb8f0f5d0c4c.zip
osx: don't use void pointer in arithmetic
Cast AudioBuffer.mData to a "unsigned char*" before adding "curpos". This fixes a gcc warning.
Diffstat (limited to 'src/output/osx_plugin.c')
-rw-r--r--src/output/osx_plugin.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/output/osx_plugin.c b/src/output/osx_plugin.c
index b368ed8a1..58a4f1e17 100644
--- a/src/output/osx_plugin.c
+++ b/src/output/osx_plugin.c
@@ -183,13 +183,13 @@ osx_render(void *vdata,
if (od->pos + bytesToCopy > od->bufferSize) {
size_t bytes = od->bufferSize - od->pos;
- memcpy(buffer->mData + curpos, od->buffer + od->pos, bytes);
+ memcpy((unsigned char*)buffer->mData + curpos, od->buffer + od->pos, bytes);
od->pos = 0;
curpos += bytes;
bytesToCopy -= bytes;
}
- memcpy(buffer->mData + curpos, od->buffer + od->pos, bytesToCopy);
+ memcpy((unsigned char*)buffer->mData + curpos, od->buffer + od->pos, bytesToCopy);
od->pos += bytesToCopy;
curpos += bytesToCopy;