forked from len0rd/rockbox
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
This commit is contained in:
parent
341b03a242
commit
bd5c0ad7bb
10 changed files with 39 additions and 27 deletions
|
|
@ -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 );
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue