summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJean-Philippe Bernardy <jeanphilippe.bernardy@gmail.com>2005-02-12 12:40:35 +0000
committerJean-Philippe Bernardy <jeanphilippe.bernardy@gmail.com>2005-02-12 12:40:35 +0000
commit6e2a8a004d4e2bc643fa19170550134d0429eb5c (patch)
tree0daaf91b774011770ca46dcf30bbfa1a23cbef7d
parent8758713f84bb731e03b080cb984275608369c9ca (diff)
downloadrockbox-6e2a8a004d4e2bc643fa19170550134d0429eb5c.zip
rockbox-6e2a8a004d4e2bc643fa19170550134d0429eb5c.tar.gz
rockbox-6e2a8a004d4e2bc643fa19170550134d0429eb5c.tar.bz2
rockbox-6e2a8a004d4e2bc643fa19170550134d0429eb5c.tar.xz
long policy
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@5932 a1c6a512-1295-4272-9138-f99709370657
-rw-r--r--apps/wps-display.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/apps/wps-display.c b/apps/wps-display.c
index a261f21..9c8619f 100644
--- a/apps/wps-display.c
+++ b/apps/wps-display.c
@@ -237,14 +237,15 @@ bool wps_load(const char* file, bool display)
* buf_size - size of buffer.
* time - time to format, in milliseconds.
*/
-static void format_time(char* buf, int buf_size, int time)
+static void format_time(char* buf, int buf_size, long time)
{
if ( time < 3600000 ) {
snprintf(buf, buf_size, "%d:%02d",
- time % 3600000 / 60000, time % 60000 / 1000);
+ (int) (time % 3600000 / 60000), (int) (time % 60000 / 1000));
} else {
snprintf(buf, buf_size, "%d:%02d:%02d",
- time / 3600000, time % 3600000 / 60000, time % 60000 / 1000);
+ (int) (time / 3600000), (int) (time % 3600000 / 60000),
+ (int) (time % 60000 / 1000));
}
}