mirror of
git://git.code.sf.net/p/zsh/code
synced 2025-01-01 05:16:05 +01:00
38513: cast time to long long for printing where possible
This commit is contained in:
parent
469a8d8aa3
commit
ef7ef1f656
2 changed files with 9 additions and 1 deletions
|
@ -1,3 +1,7 @@
|
||||||
|
2016-05-22 Peter Stephenson <p.w.stephenson@ntlworld.com>
|
||||||
|
|
||||||
|
* 38513: Matthew Martin: cast time to long long where possible.
|
||||||
|
|
||||||
2015-05-12 Clint Adams <clint@zsh.org>
|
2015-05-12 Clint Adams <clint@zsh.org>
|
||||||
|
|
||||||
* 38482: Completion/Debian/Command/_apt: complete available packages
|
* 38482: Completion/Debian/Command/_apt: complete available packages
|
||||||
|
|
|
@ -353,7 +353,11 @@ schedgetfn(UNUSED(Param pm))
|
||||||
time_t t;
|
time_t t;
|
||||||
|
|
||||||
t = sch->time;
|
t = sch->time;
|
||||||
sprintf(tbuf, "%ld", t);
|
#if defined(PRINTF_HAS_LLD)
|
||||||
|
sprintf(tbuf, "%lld", (long long)t);
|
||||||
|
#else
|
||||||
|
sprintf(tbuf, "%ld", (long)t);
|
||||||
|
#endif
|
||||||
if (sch->flags & SCHEDFLAG_TRASH_ZLE)
|
if (sch->flags & SCHEDFLAG_TRASH_ZLE)
|
||||||
flagstr = "-o";
|
flagstr = "-o";
|
||||||
else
|
else
|
||||||
|
|
Loading…
Reference in a new issue