From 945127ad05d63daacf62d4aa9c6e4f183e596a91 Mon Sep 17 00:00:00 2001 From: Paul Beckingham Date: Tue, 21 Aug 2012 11:11:55 +0100 Subject: [PATCH] Portability - Fixed warning that only appears on FreeBSD. --- src/Duration.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Duration.cpp b/src/Duration.cpp index d82b98bc1..646de9b93 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%usec", (_negative ? "-" : ""), (unsigned int)_secs); return std::string (formatted); }