From 8cd43ce2b27b715f53ba9ebabe5897905ee90f3f Mon Sep 17 00:00:00 2001 From: Paul Beckingham Date: Tue, 21 Aug 2012 15:25:18 +0100 Subject: [PATCH] Chase warning due to the opaque type time_t in printf Signed-off-by: Paul Beckingham Conflicts: src/Duration.cpp --- src/Duration.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Duration.cpp b/src/Duration.cpp index d82b98bc1..db0cd07c5 100644 --- a/src/Duration.cpp +++ b/src/Duration.cpp @@ -308,7 +308,7 @@ std::string Duration::formatPrecise () const std::string Duration::formatSeconds () const { char formatted[24]; - sprintf (formatted, "%s%ldsec", (_negative ? "-" : ""), _secs); + sprintf (formatted, "%s%llusec", (_negative ? "-" : ""), (unsigned long long)_secs); return std::string (formatted); }