From bd5c0ad7bb93a661ce284f427faab01513a1e28a Mon Sep 17 00:00:00 2001 From: Jens Arnold Date: Sat, 17 Mar 2007 10:50:58 +0000 Subject: Cast some more to keep both 32 bit and 64 bit simulator platforms happy. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@12819 a1c6a512-1295-4272-9138-f99709370657 --- apps/plugins/dict.c | 2 +- apps/plugins/wav2wv.c | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) (limited to 'apps/plugins') diff --git a/apps/plugins/dict.c b/apps/plugins/dict.c index 82c6afc906..cdb7c94a3a 100644 --- a/apps/plugins/dict.c +++ b/apps/plugins/dict.c @@ -179,7 +179,7 @@ enum plugin_status plugin_start(struct plugin_api* api, void* parameter) filesize = rb->filesize(fIndex); /* get filesize */ DEBUGF("Filesize: %d bytes = %d words \n", filesize, - (filesize / sizeof(struct stWord))); + (filesize / (int)sizeof(struct stWord))); /* for the searching algorithm */ high = filesize / sizeof( struct stWord ); diff --git a/apps/plugins/wav2wv.c b/apps/plugins/wav2wv.c index 69ccfa52a5..34f0317726 100644 --- a/apps/plugins/wav2wv.c +++ b/apps/plugins/wav2wv.c @@ -80,7 +80,8 @@ static void wvupdate (int32_t start_tick, compression = (int)(((int64_t)(bytes_read - bytes_written) * 100 + (bytes_read/2)) / bytes_read); - rb->snprintf(buf, 32, "elapsed time: %ld secs", (elapsed_ticks + (HZ/2)) / HZ); + rb->snprintf(buf, 32, "elapsed time: %ld secs", + (long)(elapsed_ticks + (HZ/2)) / HZ); rb->lcd_puts(0, 2, (unsigned char *)buf); rb->snprintf(buf, 32, "progress: %d%%", progress); -- cgit v1.2.3