diff options
author | Eliseo Martínez <eliseomarmol@gmail.com> | 2014-04-20 14:37:11 +0200 |
---|---|---|
committer | Thiago de Arruda <tpadilha84@gmail.com> | 2014-04-23 06:56:32 -0300 |
commit | 22dd4f62d3e0391eb88715b663bd84cae4f435c0 (patch) | |
tree | 878e33a94feca564010031dbbc7482137cc1d612 /src/undo.c | |
parent | 3f8061f16c820d32d87f2b608c292ae4d9fb0415 (diff) | |
download | rneovim-22dd4f62d3e0391eb88715b663bd84cae4f435c0.tar.gz rneovim-22dd4f62d3e0391eb88715b663bd84cae4f435c0.tar.bz2 rneovim-22dd4f62d3e0391eb88715b663bd84cae4f435c0.zip |
Use portable format specifiers: Case %ld - localized - vim_snprintf.
Fix uses of localized "%ld" within vim_snprintf():
- Replace "%ld" with "%" PRId64.
- Cast corresponding argument to (int64_t).
Diffstat (limited to 'src/undo.c')
-rw-r--r-- | src/undo.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/undo.c b/src/undo.c index 0a66a376eb..6d3fa5c040 100644 --- a/src/undo.c +++ b/src/undo.c @@ -2465,8 +2465,8 @@ static void u_add_time(char_u *buf, size_t buflen, time_t tt) /* longer ago */ (void)strftime((char *)buf, buflen, "%Y/%m/%d %H:%M:%S", curtime); } else - vim_snprintf((char *)buf, buflen, _("%ld seconds ago"), - (long)(time(NULL) - tt)); + vim_snprintf((char *)buf, buflen, _("%" PRId64 " seconds ago"), + (int64_t)(time(NULL) - tt)); } /* |