Mercurial > vim
diff src/term.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 | 6d5e233bac9c |
children | 2616c5a337e0 |
line wrap: on
line diff
--- a/src/term.c +++ b/src/term.c @@ -4086,11 +4086,11 @@ add_termcode(char_u *name, char_u *strin } #if defined(MSWIN) && !defined(FEAT_GUI) - s = vim_strnsave(string, (int)STRLEN(string) + 1); + s = vim_strnsave(string, STRLEN(string) + 1); #else # ifdef VIMDLL if (!gui.in_use) - s = vim_strnsave(string, (int)STRLEN(string) + 1); + s = vim_strnsave(string, STRLEN(string) + 1); else # endif s = vim_strsave(string);