From 7e16deb79096081c85924f89ca7b631618af3d6f Mon Sep 17 00:00:00 2001 From: David Anderson Date: Wed, 9 May 2012 18:24:54 +0000 Subject: [PATCH] - compile fix svn path=/trunk/boinc/; revision=25663 --- lib/str_util.cpp | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/lib/str_util.cpp b/lib/str_util.cpp index 6eb89f60bb..d1203f083c 100644 --- a/lib/str_util.cpp +++ b/lib/str_util.cpp @@ -212,14 +212,15 @@ int ndays_to_string (double x, int smallest_timescale, char *buf) { } // convert seconds into a string "0h00m00s00" -void secs_to_hmsf(double secs, char*buf) { - uint s = secs; - uint f = (secs - s) * 100.0; - uint h = s / 3600; - s -= h * 3600; - uint m = s / 60; - s -= m * 60; - sprintf(buf, "%uh%02um%02us%02u", h, m, s, f); +// +void secs_to_hmsf(double secs, char* buf) { + int s = secs; + int f = (secs - s) * 100.0; + int h = s / 3600; + s -= h * 3600; + int m = s / 60; + s -= m * 60; + sprintf(buf, "%uh%02um%02us%02u", h, m, s, f); } // Convert nbytes into a string. If total_bytes is non-zero,