Portability

- Fixed warning that only appears on FreeBSD.
This commit is contained in:
Paul Beckingham 2012-08-21 11:11:55 +01:00
parent 8850bc849f
commit 945127ad05

View file

@ -308,7 +308,7 @@ std::string Duration::formatPrecise () const
std::string Duration::formatSeconds () const std::string Duration::formatSeconds () const
{ {
char formatted[24]; char formatted[24];
sprintf (formatted, "%s%ldsec", (_negative ? "-" : ""), _secs); sprintf (formatted, "%s%usec", (_negative ? "-" : ""), (unsigned int)_secs);
return std::string (formatted); return std::string (formatted);
} }