summaryrefslogtreecommitdiff
path: root/src/sign.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2020-06-12 22:59:11 +0200
committerBram Moolenaar <Bram@vim.org>2020-06-12 22:59:11 +0200
commit71ccd03ee8a43b20000214a9c99dcc90f039edca (patch)
treeb5e89de8afbba2a8981d68b578514df046cb4aad /src/sign.c
parent722e505d1a55dfde5ab62241d10da91d2e10c3c1 (diff)
downloadvim-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.c8
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
{