1
0
Fork 0
mirror of git://git.code.sf.net/p/zsh/code synced 2024-12-29 16:25:35 +01:00

38513: cast time to long long for printing where possible

This commit is contained in:
Matthew Martin 2016-05-18 21:51:46 -05:00 committed by Peter Stephenson
parent 469a8d8aa3
commit ef7ef1f656
2 changed files with 9 additions and 1 deletions

View file

@ -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>
* 38482: Completion/Debian/Command/_apt: complete available packages

View file

@ -353,7 +353,11 @@ schedgetfn(UNUSED(Param pm))
time_t t;
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)
flagstr = "-o";
else