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:
committed by
Federico Hernandez
parent
bbd8a9556e
commit
8cd43ce2b2
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user