alsa_writer.c: Fix gcc-4 signedness warning
[paraslash.git] / alsa_writer.c
index 53cf7e369b585c079c1f0beeed71582498d4e1d4..039c9817a99f13caa5980247e1d481615755680b 100644 (file)
@@ -140,7 +140,7 @@ static int alsa_write(char *data, size_t nbytes, struct writer_node *wn)
 {
        struct private_alsa_data *pad = wn->private_data;
        size_t frames = nbytes / pad->bytes_per_frame;
 {
        struct private_alsa_data *pad = wn->private_data;
        size_t frames = nbytes / pad->bytes_per_frame;
-       unsigned char *d = data;
+       unsigned char *d = (unsigned char*)data;
        snd_pcm_sframes_t r, result = 0;
 
        while (frames > 0) {
        snd_pcm_sframes_t r, result = 0;
 
        while (frames > 0) {