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/os_win32.c b/src/os_win32.c
index 6356076..43ad102 100644
--- a/src/os_win32.c
+++ b/src/os_win32.c
@@ -477,8 +477,7 @@
if (exe_path == NULL && exe_name != NULL)
{
- exe_path = vim_strnsave(exe_name,
- (int)(gettail_sep(exe_name) - exe_name));
+ exe_path = vim_strnsave(exe_name, gettail_sep(exe_name) - exe_name);
if (exe_path != NULL)
{
// Append our starting directory to $PATH, so that when doing