From 94fb09316ae64f63373418df0bb1de4a90fdf73b Mon Sep 17 00:00:00 2001 From: Yoshihisa Uchida Date: Mon, 22 Mar 2010 10:47:09 +0000 Subject: [PATCH] fix yellow git-svn-id: svn://svn.rockbox.org/rockbox/trunk@25291 a1c6a512-1295-4272-9138-f99709370657 --- apps/codecs/libpcm/dialogic_oki_adpcm.c | 2 +- apps/codecs/libpcm/yamaha_adpcm.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/codecs/libpcm/dialogic_oki_adpcm.c b/apps/codecs/libpcm/dialogic_oki_adpcm.c index 4a6465f196..60090aaa89 100644 --- a/apps/codecs/libpcm/dialogic_oki_adpcm.c +++ b/apps/codecs/libpcm/dialogic_oki_adpcm.c @@ -155,7 +155,7 @@ static struct pcm_pos *get_seek_pos(uint32_t seek_val, int seek_mode, uint32_t seek_count = (seek_mode == PCM_SEEK_TIME)? ((uint64_t)seek_val * ci->id3->frequency / 1000LL) / (blocksperchunk * fmt->samplesperblock) : - seek_val / fmt->chunksize; + seek_val / (unsigned long)fmt->chunksize; uint32_t new_count = seek(seek_count, &cur_data, read_buffer, &decode_for_seek); newpos.pos = new_count * fmt->chunksize; diff --git a/apps/codecs/libpcm/yamaha_adpcm.c b/apps/codecs/libpcm/yamaha_adpcm.c index f1fb9b68ae..c67fe7524a 100644 --- a/apps/codecs/libpcm/yamaha_adpcm.c +++ b/apps/codecs/libpcm/yamaha_adpcm.c @@ -221,7 +221,7 @@ static struct pcm_pos *get_seek_pos(uint32_t seek_val, int seek_mode, uint32_t new_count = (seek_mode == PCM_SEEK_TIME)? ((uint64_t)seek_val * ci->id3->frequency / 1000LL) / (blocksperchunk * fmt->samplesperblock) : - seek_val / fmt->chunksize; + seek_val / (unsigned long)fmt->chunksize; if (!has_block_header) {