mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-08-28 22:47:20 +02:00
Chase warning due to the opaque type time_t in printf
Signed-off-by: Paul Beckingham <paul@beckingham.net>
This commit is contained in:
parent
945127ad05
commit
23cd59a9a1
1 changed files with 1 additions and 1 deletions
|
@ -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%usec", (_negative ? "-" : ""), (unsigned int)_secs);
|
sprintf (formatted, "%s%llusec", (_negative ? "-" : ""), (unsigned long long)_secs);
|
||||||
return std::string (formatted);
|
return std::string (formatted);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue