diff options
author | Bram Moolenaar <Bram@vim.org> | 2020-06-12 22:59:11 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2020-06-12 22:59:11 +0200 |
commit | 71ccd03ee8a43b20000214a9c99dcc90f039edca (patch) | |
tree | b5e89de8afbba2a8981d68b578514df046cb4aad /src/sign.c | |
parent | 722e505d1a55dfde5ab62241d10da91d2e10c3c1 (diff) | |
download | vim-git-71ccd03ee8a43b20000214a9c99dcc90f039edca.tar.gz |
patch 8.2.0967: unnecessary type casts for vim_strnsave()v8.2.0967
Problem: Unnecessary type casts for vim_strnsave().
Solution: Remove the type casts.
Diffstat (limited to 'src/sign.c')
-rw-r--r-- | src/sign.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/sign.c b/src/sign.c index 576c4d01f..a3dfaf034 100644 --- a/src/sign.c +++ b/src/sign.c @@ -1309,22 +1309,22 @@ sign_define_cmd(char_u *sign_name, char_u *cmdline) if (STRNCMP(arg, "icon=", 5) == 0) { arg += 5; - icon = vim_strnsave(arg, (int)(p - arg)); + icon = vim_strnsave(arg, p - arg); } else if (STRNCMP(arg, "text=", 5) == 0) { arg += 5; - text = vim_strnsave(arg, (int)(p - arg)); + text = vim_strnsave(arg, p - arg); } else if (STRNCMP(arg, "linehl=", 7) == 0) { arg += 7; - linehl = vim_strnsave(arg, (int)(p - arg)); + linehl = vim_strnsave(arg, p - arg); } else if (STRNCMP(arg, "texthl=", 7) == 0) { arg += 7; - texthl = vim_strnsave(arg, (int)(p - arg)); + texthl = vim_strnsave(arg, p - arg); } else { |