src/audio/macosx/SDL_coreaudio.c
changeset 1487 dc6b59e925a2
parent 1402 d910939febfa
child 1662 782fd950bd46
child 1895 c121d94672cb
child 4103 9df8136abec0
--- a/src/audio/macosx/SDL_coreaudio.c	Wed Mar 08 18:30:12 2006 +0000
+++ b/src/audio/macosx/SDL_coreaudio.c	Thu Mar 09 06:33:21 2006 +0000
@@ -128,8 +128,8 @@
         len = bufferSize - bufferOffset;
         if (len > remaining)
             len = remaining;
-        SDL_memcpy(ptr, buffer + bufferOffset, len);
-        ptr += len;
+        SDL_memcpy(ptr, (char *)buffer + bufferOffset, len);
+        ptr = (char *)ptr + len;
         remaining -= len;
         bufferOffset += len;
     }