summaryrefslogtreecommitdiff
path: root/src/highlight.c
diff options
context:
space:
mode:
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 6291f24ac..5d123ac87 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;