mirror of
https://github.com/neovim/neovim.git
synced 2024-12-20 19:25:11 -07:00
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:
parent
1bffe66508
commit
182b84e1c3
@ -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);
|
||||
}
|
||||
|
||||
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user