summaryrefslogtreecommitdiffstats
path: root/src/highlight.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2020-06-07 20:49:05 +0200
committerBram Moolenaar <Bram@vim.org>2020-06-07 20:49:05 +0200
commitdf44a27b53586fccfc6a3aedc89061fdd9a515ff (patch)
tree2d0ca2790b3e106a7d8f059951160789167a17a1 /src/highlight.c
parentda84ac2a6f467d0b9eddcc8709433cda75d16a41 (diff)
patch 8.2.0928: many type casts are used for vim_strnsave()v8.2.0928
Problem: Many type casts are used for vim_strnsave(). Solution: Make the length argument size_t instead of int. (Ken Takata, closes #5633) Remove some type casts.
Diffstat (limited to 'src/highlight.c')
-rw-r--r--src/highlight.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/highlight.c b/src/highlight.c
index 6291f24aca..5d123ac877 100644
--- a/src/highlight.c
+++ b/src/highlight.c
@@ -906,7 +906,7 @@ do_highlight(
while (*linep && !VIM_ISWHITE(*linep) && *linep != '=')
++linep;
vim_free(key);
- key = vim_strnsave_up(key_start, (int)(linep - key_start));
+ key = vim_strnsave_up(key_start, linep - key_start);
if (key == NULL)
{
error = TRUE;