Use portable format specifiers: Case %ld - localized - smsg.

Fix uses of localized "%ld" within smsg():
- Replace "%ld" with "%" PRId64.
- Cast corresponding argument to (int64_t).
This commit is contained in:
Eliseo Martínez
2014-04-20 12:59:31 +02:00
committed by Thiago de Arruda
parent 182b84e1c3
commit c049cb2b51
7 changed files with 27 additions and 26 deletions

View File

@@ -18819,8 +18819,8 @@ call_user_func (
if (aborting())
smsg((char_u *)_("%s aborted"), sourcing_name);
else if (fc->rettv->v_type == VAR_NUMBER)
smsg((char_u *)_("%s returning #%ld"), sourcing_name,
(long)fc->rettv->vval.v_number);
smsg((char_u *)_("%s returning #%" PRId64 ""),
sourcing_name, (int64_t)fc->rettv->vval.v_number);
else {
char_u buf[MSG_BUF_LEN];
char_u numbuf2[NUMBUFLEN];