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/search.c b/src/search.c
index 7a4cdb7..91a26dd 100644
--- a/src/search.c
+++ b/src/search.c
@@ -1916,7 +1916,7 @@
for (p = linep + startpos->col + 1; *p && *p != '('; ++p)
;
delim_len = (p - linep) - startpos->col - 1;
- delim_copy = vim_strnsave(linep + startpos->col + 1, (int)delim_len);
+ delim_copy = vim_strnsave(linep + startpos->col + 1, delim_len);
if (delim_copy == NULL)
return FALSE;
for (lnum = startpos->lnum; lnum <= endpos->lnum; ++lnum)