aboutsummaryrefslogtreecommitdiff
path: root/src/memline.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/memline.c')
-rw-r--r--src/memline.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/memline.c b/src/memline.c
index 89085745a1..7dc386af66 100644
--- a/src/memline.c
+++ b/src/memline.c
@@ -2085,7 +2085,7 @@ ml_get_buf (
/* Avoid giving this message for a recursive call, may happen when
* the GUI redraws part of the text. */
++recursive;
- EMSGN(_("E315: ml_get: invalid lnum: %ld"), lnum);
+ EMSGN(_("E315: ml_get: invalid lnum: %" PRId64), lnum);
--recursive;
}
errorret:
@@ -2117,7 +2117,7 @@ errorret:
/* Avoid giving this message for a recursive call, may happen
* when the GUI redraws part of the text. */
++recursive;
- EMSGN(_("E316: ml_get: cannot find line %ld"), lnum);
+ EMSGN(_("E316: ml_get: cannot find line %" PRId64), lnum);
--recursive;
}
goto errorret;
@@ -2977,7 +2977,7 @@ static void ml_flush_line(buf_T *buf)
hp = ml_find_line(buf, lnum, ML_FIND);
if (hp == NULL)
- EMSGN(_("E320: Cannot find line %ld"), lnum);
+ EMSGN(_("E320: Cannot find line %" PRId64), lnum);
else {
dp = (DATA_BL *)(hp->bh_data);
idx = lnum - buf->b_ml.ml_locked_low;
@@ -3237,11 +3237,11 @@ static bhdr_T *ml_find_line(buf_T *buf, linenr_T lnum, int action)
}
if (idx >= (int)pp->pb_count) { /* past the end: something wrong! */
if (lnum > buf->b_ml.ml_line_count)
- EMSGN(_("E322: line number out of range: %ld past the end"),
+ EMSGN(_("E322: line number out of range: %" PRId64 " past the end"),
lnum - buf->b_ml.ml_line_count);
else
- EMSGN(_("E323: line count wrong in block %ld"), bnum);
+ EMSGN(_("E323: line count wrong in block %" PRId64), bnum);
goto error_block;
}
if (action == ML_DELETE) {