diff options
author | Warren Dukes <warren.dukes@gmail.com> | 2006-07-17 21:46:32 +0000 |
---|---|---|
committer | Warren Dukes <warren.dukes@gmail.com> | 2006-07-17 21:46:32 +0000 |
commit | 0bf396d610a78a16e49fe72f9ba4aa9a49a6053c (patch) | |
tree | 256510d9881995736292afa522a3c38b7d2aee20 /src/tag.c | |
parent | 7fdcd56a99f4c302d0e56c68e9c9db22d59b31b5 (diff) | |
download | mpd-0bf396d610a78a16e49fe72f9ba4aa9a49a6053c.tar.gz mpd-0bf396d610a78a16e49fe72f9ba4aa9a49a6053c.tar.xz mpd-0bf396d610a78a16e49fe72f9ba4aa9a49a6053c.zip |
some quick hacks to avoid signedness warnings with gcc4
git-svn-id: https://svn.musicpd.org/mpd/trunk@4387 09075e82-0dd4-0310-85a5-a0d7c8717e4f
Diffstat (limited to 'src/tag.c')
-rw-r--r-- | src/tag.c | 10 |
1 files changed, 5 insertions, 5 deletions
@@ -347,13 +347,13 @@ MpdTag * apeDup(char * file) { MpdTag * ret = NULL; FILE * fp = NULL; int tagCount; - unsigned char * buffer = NULL; - unsigned char * p; + char * buffer = NULL; + char * p; int tagLen; int size; unsigned long flags; int i; - unsigned char * key; + char * key; struct { unsigned char id[8]; @@ -411,10 +411,10 @@ MpdTag * apeDup(char * file) { tagCount = readLEuint32(footer.tagCount); p = buffer; while(tagCount-- && tagLen > 10) { - size = readLEuint32(p); + size = readLEuint32((unsigned char *)p); p += 4; tagLen -= 4; - flags = readLEuint32(p); + flags = readLEuint32((unsigned char *)p); p += 4; tagLen -= 4; |