]> git.hungrycats.org Git - linux/commitdiff
[PATCH] gcc-3.5: fix pcm_plugin warnings
authorAndrew Morton <akpm@osdl.org>
Wed, 4 Feb 2004 02:33:21 +0000 (18:33 -0800)
committerLinus Torvalds <torvalds@home.osdl.org>
Wed, 4 Feb 2004 02:33:21 +0000 (18:33 -0800)
sound/core/oss/pcm_plugin.c

index 6b519fbcad017ae2962988ee49e15f78e6a478ef..958cc3fd569dd134bae22584b4ccf89d88b7d3fb 100644 (file)
@@ -857,11 +857,14 @@ int snd_pcm_area_silence(const snd_pcm_channel_area_t *dst_area, size_t dst_offs
        silence = snd_pcm_format_silence_64(format);
        if (dst_area->step == (unsigned int) width) {
                size_t dwords = samples * width / 64;
+               u_int64_t *dst64 = (u_int64_t *)dst;
+
                samples -= dwords * 64 / width;
                while (dwords-- > 0)
-                       *((u_int64_t*)dst)++ = silence;
+                       *dst64++ = silence;
                if (samples == 0)
                        return 0;
+               dst = (char *)dst64;
        }
        dst_step = dst_area->step / 8;
        switch (width) {