From 28bac30c196fbe74a635b0c285bad0cd34bfaffa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Eliseo=20Marti=CC=81nez?= Date: Sun, 20 Apr 2014 18:29:30 +0200 Subject: [PATCH] Use portable format specifiers: Case %ld - localized - N_. Fix uses of plain "%ld" within N_(): - Replace "%ld" with "%" PRId64. --- src/eval.c | 2 +- src/regexp_nfa.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/eval.c b/src/eval.c index 1bac3f535d..b53b04258f 100644 --- a/src/eval.c +++ b/src/eval.c @@ -133,7 +133,7 @@ typedef struct lval_S { static char *e_letunexp = N_("E18: Unexpected characters in :let"); -static char *e_listidx = N_("E684: list index out of range: %ld"); +static char *e_listidx = N_("E684: list index out of range: %" PRId64); static char *e_undefvar = N_("E121: Undefined variable: %s"); static char *e_missbrac = N_("E111: Missing ']'"); static char *e_listarg = N_("E686: Argument of %s must be a List"); diff --git a/src/regexp_nfa.c b/src/regexp_nfa.c index 271699958e..8a87dae34b 100644 --- a/src/regexp_nfa.c +++ b/src/regexp_nfa.c @@ -240,7 +240,7 @@ static char_u e_nul_found[] = N_( "E865: (NFA) Regexp end encountered prematurely"); static char_u e_misplaced[] = N_("E866: (NFA regexp) Misplaced %c"); static char_u e_ill_char_class[] = N_( - "E877: (NFA regexp) Invalid character class: %ld"); + "E877: (NFA regexp) Invalid character class: %" PRId64); /* NFA regexp \ze operator encountered. */ static int nfa_has_zend;