summaryrefslogtreecommitdiffstats
path: root/apps
diff options
context:
space:
mode:
authorYoshihisa Uchida <uchida@rockbox.org>2010-03-22 10:47:09 +0000
committerYoshihisa Uchida <uchida@rockbox.org>2010-03-22 10:47:09 +0000
commit94fb09316ae64f63373418df0bb1de4a90fdf73b (patch)
tree2e472a11a6070000f7b15030114d7c29934adda9 /apps
parenta8137252a5a43a1a20a62c0f81b237a8ccf12b90 (diff)
downloadrockbox-94fb09316ae64f63373418df0bb1de4a90fdf73b.tar.gz
rockbox-94fb09316ae64f63373418df0bb1de4a90fdf73b.tar.bz2
rockbox-94fb09316ae64f63373418df0bb1de4a90fdf73b.zip
fix yellow
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@25291 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps')
-rw-r--r--apps/codecs/libpcm/dialogic_oki_adpcm.c2
-rw-r--r--apps/codecs/libpcm/yamaha_adpcm.c2
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)
{