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

Fix uses of plain "%ld" within EMSGN():
- Replace "%ld" with "%" PRId64.
- No argument cast needed. EMSGN() will take care of that.
This commit is contained in:
Eliseo Martínez
2014-04-20 15:10:16 +02:00
committed by Thiago de Arruda
parent 5b0aa1cb57
commit bf3b9d0ecb
4 changed files with 17 additions and 13 deletions

View File

@@ -11660,7 +11660,7 @@ static void f_matchadd(typval_T *argvars, typval_T *rettv)
if (error == TRUE)
return;
if (id >= 1 && id <= 3) {
EMSGN("E798: ID is reserved for \":match\": %ld", id);
EMSGN("E798: ID is reserved for \":match\": %" PRId64, id);
return;
}