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

Fix uses of plain "%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:49:33 +02:00 committed by Thiago de Arruda
parent 1bffe66508
commit 182b84e1c3
2 changed files with 3 additions and 3 deletions

View File

@ -6663,7 +6663,7 @@ static void ex_pwd(exarg_T *eap)
*/
static void ex_equal(exarg_T *eap)
{
smsg((char_u *)"%ld", (long)eap->line2);
smsg((char_u *)"%" PRId64, (int64_t)eap->line2);
ex_may_print(eap);
}

View File

@ -219,8 +219,8 @@ static void u_check(int newhead_may_be_NULL) {
EMSGN("b_u_curhead invalid: 0x%x", curbuf->b_u_curhead);
if (header_count != curbuf->b_u_numhead) {
EMSG("b_u_numhead invalid");
smsg((char_u *)"expected: %ld, actual: %ld",
(long)header_count, (long)curbuf->b_u_numhead);
smsg((char_u *)"expected: %" PRId64 ", actual: %" PRId64,
(int64_t)header_count, (int64_t)curbuf->b_u_numhead);
}
}