summaryrefslogtreecommitdiffstats
path: root/src/mark.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2020-06-12 22:59:11 +0200
committerBram Moolenaar <Bram@vim.org>2020-06-12 22:59:11 +0200
commit71ccd03ee8a43b20000214a9c99dcc90f039edca (patch)
treeb5e89de8afbba2a8981d68b578514df046cb4aad /src/mark.c
parent722e505d1a55dfde5ab62241d10da91d2e10c3c1 (diff)
patch 8.2.0967: unnecessary type casts for vim_strnsave()v8.2.0967
Problem: Unnecessary type casts for vim_strnsave(). Solution: Remove the type casts.
Diffstat (limited to 'src/mark.c')
-rw-r--r--src/mark.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mark.c b/src/mark.c
index 298da67e84..948a1826ec 100644
--- a/src/mark.c
+++ b/src/mark.c
@@ -680,7 +680,7 @@ mark_line(pos_T *mp, int lead_len)
if (mp->lnum == 0 || mp->lnum > curbuf->b_ml.ml_line_count)
return vim_strsave((char_u *)"-invalid-");
// Allow for up to 5 bytes per character.
- s = vim_strnsave(skipwhite(ml_get(mp->lnum)), (int)Columns * 5);
+ s = vim_strnsave(skipwhite(ml_get(mp->lnum)), Columns * 5);
if (s == NULL)
return NULL;
// Truncate the line to fit it in the window.