aboutsummaryrefslogtreecommitdiff
path: root/src/regexp_nfa.c
diff options
context:
space:
mode:
authorEliseo Martínez <eliseomarmol@gmail.com>2014-04-20 15:10:16 +0200
committerThiago de Arruda <tpadilha84@gmail.com>2014-04-23 06:56:33 -0300
commitbf3b9d0ecbb16fc998c1c9656fd2ec235708ec55 (patch)
tree944fec853b79be322a5a92f31e93025e1389ef23 /src/regexp_nfa.c
parent5b0aa1cb578914426a26573ba3a7b34dfd65bf04 (diff)
downloadrneovim-bf3b9d0ecbb16fc998c1c9656fd2ec235708ec55.tar.gz
rneovim-bf3b9d0ecbb16fc998c1c9656fd2ec235708ec55.tar.bz2
rneovim-bf3b9d0ecbb16fc998c1c9656fd2ec235708ec55.zip
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.
Diffstat (limited to 'src/regexp_nfa.c')
-rw-r--r--src/regexp_nfa.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/regexp_nfa.c b/src/regexp_nfa.c
index 50ca435e70..271699958e 100644
--- a/src/regexp_nfa.c
+++ b/src/regexp_nfa.c
@@ -1156,7 +1156,7 @@ static int nfa_regatom(void)
rc_did_emsg = TRUE;
return FAIL;
}
- EMSGN("INTERNAL: Unknown character class char: %ld", c);
+ EMSGN("INTERNAL: Unknown character class char: %" PRId64, c);
return FAIL;
}
/* When '.' is followed by a composing char ignore the dot, so that
@@ -5823,7 +5823,7 @@ static int nfa_regmatch(nfa_regprog_T *prog, nfa_state_T *start, regsubs_T *subm
#ifdef REGEXP_DEBUG
if (c < 0)
- EMSGN("INTERNAL: Negative state char: %ld", c);
+ EMSGN("INTERNAL: Negative state char: %" PRId64, c);
#endif
result = (c == curc);
@@ -6272,8 +6272,9 @@ static regprog_T *nfa_regcomp(char_u *expr, int re_flags)
if (postfix == NULL) {
/* TODO: only give this error for debugging? */
if (post_ptr >= post_end)
- EMSGN("Internal error: estimated max number of states insufficient: %ld",
- post_end - post_start);
+ EMSGN("Internal error: estimated max number "
+ "of states insufficient: %" PRId64,
+ post_end - post_start);
goto fail; /* Cascaded (syntax?) error */
}