patch 8.2.0967: unnecessary type casts for vim_strnsave()
Problem: Unnecessary type casts for vim_strnsave().
Solution: Remove the type casts.
diff --git a/src/mark.c b/src/mark.c
index 298da67..948a182 100644
--- a/src/mark.c
+++ b/src/mark.c
@@ -680,7 +680,7 @@
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.