From cd74d1887ace38bcf6b1d828a0a93f3e9699c7c6 Mon Sep 17 00:00:00 2001 From: Tomasz Sowa Date: Thu, 11 Feb 2010 21:04:53 +0000 Subject: [PATCH] fixed: sprintf %d in uptime function git-svn-id: svn://ttmath.org/publicrep/winix/trunk@569 e52654a7-88a9-db11-a3e9-0013d4bc506e --- templates/uptime.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/templates/uptime.cpp b/templates/uptime.cpp index 63a4e1a..cf4f001 100755 --- a/templates/uptime.cpp +++ b/templates/uptime.cpp @@ -44,9 +44,9 @@ char buf[50]; time_t hour = min / 60; if( hour == 0 && min == 0 ) - sprintf(buf, "%d:%02d:%02d", hour, min, sec); + sprintf(buf, "%d:%02d:%02d", (int)hour, (int)min, (int)sec); else - sprintf(buf, "%d:%02d", hour, min); + sprintf(buf, "%d:%02d", (int)hour, (int)min); i.out << buf; }