]> git.hungrycats.org Git - linux/commitdiff
[PATCH] ic31712: when storing a bitmask in pointer field, use unsigned long
authorAlexander Viro <viro@www.linux.org.uk>
Fri, 16 Jul 2004 05:03:05 +0000 (22:03 -0700)
committerLinus Torvalds <torvalds@ppc970.osdl.org>
Fri, 16 Jul 2004 05:03:05 +0000 (22:03 -0700)
sound/pci/ice1712/ice1724.c

index a7a55a98bac1430c35ecd14ebbcdd10ec8aae2b9..d36739ec977ee4093b966667948594bbc1ac697e 100644 (file)
@@ -1071,7 +1071,7 @@ static int snd_vt1724_playback_indep_open(snd_pcm_substream_t *substream)
                return -EBUSY; /* FIXME: should handle blocking mode properly */
        }
        up(&ice->open_mutex);
-       runtime->private_data = (void*)(1 << (substream->number + 4));
+       runtime->private_data = (void*)(1UL << (substream->number + 4));
        ice->playback_con_substream_ds[substream->number] = substream;
        runtime->hw = snd_vt1724_2ch_stereo;
        snd_pcm_set_sync(substream);