From 71ccd03ee8a43b20000214a9c99dcc90f039edca Mon Sep 17 00:00:00 2001 From: Bram Moolenaar Date: Fri, 12 Jun 2020 22:59:11 +0200 Subject: patch 8.2.0967: unnecessary type casts for vim_strnsave() Problem: Unnecessary type casts for vim_strnsave(). Solution: Remove the type casts. --- src/fileio.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/fileio.c') diff --git a/src/fileio.c b/src/fileio.c index 3896ba8a6..7b605296b 100644 --- a/src/fileio.c +++ b/src/fileio.c @@ -2724,7 +2724,7 @@ next_fenc(char_u **pp, int *alloced) } else { - r = vim_strnsave(*pp, (int)(p - *pp)); + r = vim_strnsave(*pp, p - *pp); *pp = p + 1; if (r != NULL) { -- cgit v1.2.1