diff src/audio/macosx/SDL_coreaudio.c @ 1487:dc6b59e925a2

Cleaning up warnings on MacOS X
author Sam Lantinga <slouken@libsdl.org>
date Thu, 09 Mar 2006 06:33:21 +0000
parents d910939febfa
children 782fd950bd46 c121d94672cb 9df8136abec0
line wrap: on
line diff
--- 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;
     }