Fix another gcc signedness warning in write.c
authorAndre <maan@p133.(none)>
Mon, 24 Apr 2006 14:16:04 +0000 (16:16 +0200)
committerAndre <maan@p133.(none)>
Mon, 24 Apr 2006 14:16:04 +0000 (16:16 +0200)
write.c

diff --git a/write.c b/write.c
index 538651d..6e4ee06 100644 (file)
--- a/write.c
+++ b/write.c
@@ -227,7 +227,7 @@ out:
  */
 static size_t check_wave(void)
 {
-       unsigned char *a = audiobuf;
+       unsigned char *a = (unsigned char*)audiobuf;
        if (a[0] != 'R' || a[1] != 'I' || a[2] != 'F' || a[3] != 'F')
                return WAV_HEADER_LEN;
        conf.channels_arg = (unsigned) a[22];