Mercurial > vim
diff src/os_win32.c @ 20830:9064044fd4f6 v8.2.0967
patch 8.2.0967: unnecessary type casts for vim_strnsave()
Commit: https://github.com/vim/vim/commit/71ccd03ee8a43b20000214a9c99dcc90f039edca
Author: Bram Moolenaar <Bram@vim.org>
Date: Fri Jun 12 22:59:11 2020 +0200
patch 8.2.0967: unnecessary type casts for vim_strnsave()
Problem: Unnecessary type casts for vim_strnsave().
Solution: Remove the type casts.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Fri, 12 Jun 2020 23:00:04 +0200 |
parents | 89b0f161e6a6 |
children | 88070e222e82 |
line wrap: on
line diff
--- a/src/os_win32.c +++ b/src/os_win32.c @@ -477,8 +477,7 @@ get_exe_name(void) 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