aboutsummaryrefslogtreecommitdiff
path: root/src/regexp.c
diff options
context:
space:
mode:
authorEliseo Martínez <eliseomarmol@gmail.com>2014-04-20 04:09:35 +0200
committerThiago de Arruda <tpadilha84@gmail.com>2014-04-23 06:56:32 -0300
commit1bffe66508ff986a61c0e08caddc92b7f3ace81e (patch)
treef62bca74d7217f73b966e57991efa7e209efeb14 /src/regexp.c
parentb536c22550db16836726b38494faa9be2f55e738 (diff)
downloadrneovim-1bffe66508ff986a61c0e08caddc92b7f3ace81e.tar.gz
rneovim-1bffe66508ff986a61c0e08caddc92b7f3ace81e.tar.bz2
rneovim-1bffe66508ff986a61c0e08caddc92b7f3ace81e.zip
Use portable format specifiers: Case %ld - plain - fprintf.
Fix uses of plain "%ld" within fprintf(): - Replace "%ld" with "%" PRId64. - Cast corresponding argument to (int64_t).
Diffstat (limited to 'src/regexp.c')
-rw-r--r--src/regexp.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/regexp.c b/src/regexp.c
index f4e7661b8c..d72c104c7d 100644
--- a/src/regexp.c
+++ b/src/regexp.c
@@ -5770,15 +5770,16 @@ static void regdump(char_u *pattern, bt_regprog_T *r)
end = next;
if (op == BRACE_LIMITS) {
/* Two ints */
- fprintf(f, " minval %ld, maxval %ld", OPERAND_MIN(s), OPERAND_MAX(s));
+ fprintf(f, " minval %" PRId64 ", maxval %" PRId64,
+ (int64_t)OPERAND_MIN(s), (int64_t)OPERAND_MAX(s));
s += 8;
} else if (op == BEHIND || op == NOBEHIND) {
/* one int */
- fprintf(f, " count %ld", OPERAND_MIN(s));
+ fprintf(f, " count %" PRId64, (int64_t)OPERAND_MIN(s));
s += 4;
} else if (op == RE_LNUM || op == RE_COL || op == RE_VCOL) {
/* one int plus comperator */
- fprintf(f, " count %ld", OPERAND_MIN(s));
+ fprintf(f, " count %" PRId64, (int64_t)OPERAND_MIN(s));
s += 5;
}
s += 3;