diff decoders/wav.c @ 246:170b1400e060

Cast to prevent pointer arithmatic on a (void *).
author Ryan C. Gordon <icculus@icculus.org>
date Tue, 05 Feb 2002 19:00:39 +0000
parents 12a9c2e0b00f
children c97be6e1bd27
line wrap: on
line diff
--- a/decoders/wav.c	Mon Feb 04 20:06:53 2002 +0000
+++ b/decoders/wav.c	Tue Feb 05 19:00:39 2002 +0000
@@ -457,19 +457,19 @@
                 } /* if */
 
                 /* only write first sample frame for now. */
-                put_adpcm_sample_frame2(internal->buffer + bw, fmt);
+                put_adpcm_sample_frame2((Uint8 *) internal->buffer + bw, fmt);
                 fmt->fmt.adpcm.samples_left_in_block--;
                 bw += fmt->sample_frame_size;
                 break;
 
             case 1:  /* output last sample frame of block... */
-                put_adpcm_sample_frame1(internal->buffer + bw, fmt);
+                put_adpcm_sample_frame1((Uint8 *) internal->buffer + bw, fmt);
                 fmt->fmt.adpcm.samples_left_in_block--;
                 bw += fmt->sample_frame_size;
                 break;
 
             default: /* output latest sample frame and read a new one... */
-                put_adpcm_sample_frame1(internal->buffer + bw, fmt);
+                put_adpcm_sample_frame1((Uint8 *) internal->buffer + bw, fmt);
                 fmt->fmt.adpcm.samples_left_in_block--;
                 bw += fmt->sample_frame_size;