mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-07-07 20:06:36 +02:00
Portability
- Fixed warning that only appears on FreeBSD.
This commit is contained in:
parent
8850bc849f
commit
945127ad05
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue