Chase warning due to the opaque type time_t in printf

Signed-off-by: Paul Beckingham <paul@beckingham.net>

Conflicts:
	src/Duration.cpp
This commit is contained in:
Paul Beckingham
2012-08-21 15:25:18 +01:00
committed by Federico Hernandez
parent bbd8a9556e
commit 8cd43ce2b2

View File

@@ -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);
}