diff options
author | Warren Dukes <warren.dukes@gmail.com> | 2004-03-01 03:34:01 +0000 |
---|---|---|
committer | Warren Dukes <warren.dukes@gmail.com> | 2004-03-01 03:34:01 +0000 |
commit | e742f2be2cc7d1b094ced77c23e7152754d9b242 (patch) | |
tree | b1c5d79d7ab4072537773c24e73011fe14278a64 | |
parent | f515692aa93e40a72aeb1575c135dc31b44704df (diff) | |
download | mpd-e742f2be2cc7d1b094ced77c23e7152754d9b242.tar.gz mpd-e742f2be2cc7d1b094ced77c23e7152754d9b242.tar.xz mpd-e742f2be2cc7d1b094ced77c23e7152754d9b242.zip |
fix a typecast
git-svn-id: https://svn.musicpd.org/mpd/trunk@126 09075e82-0dd4-0310-85a5-a0d7c8717e4f
Diffstat (limited to '')
-rw-r--r-- | src/playerData.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/playerData.c b/src/playerData.c index 7e02bbb2f..a8ab74d91 100644 --- a/src/playerData.c +++ b/src/playerData.c @@ -86,9 +86,9 @@ void initPlayerData() { buffer = &(playerData_pd->buffer); buffer->chunks = ((char *)playerData_pd)+sizeof(PlayerData); - buffer->chunkSize = (mpd_sint16 *)(((char *)buffer->chunks)+ + buffer->chunkSize = (mpd_uint16 *)(((char *)buffer->chunks)+ buffered_chunks*CHUNK_SIZE); - buffer->bitRate = (mpd_sint16 *)(((char *)buffer->chunkSize)+ + buffer->bitRate = (mpd_uint16 *)(((char *)buffer->chunkSize)+ buffered_chunks*sizeof(mpd_sint16)); buffer->times = (float *)(((char *)buffer->bitRate)+ buffered_chunks*sizeof(mpd_sint16)); |