diff options
author | Bram Moolenaar <Bram@vim.org> | 2020-06-07 20:49:05 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2020-06-07 20:49:05 +0200 |
commit | df44a27b53586fccfc6a3aedc89061fdd9a515ff (patch) | |
tree | 2d0ca2790b3e106a7d8f059951160789167a17a1 /src/highlight.c | |
parent | da84ac2a6f467d0b9eddcc8709433cda75d16a41 (diff) | |
download | vim-git-df44a27b53586fccfc6a3aedc89061fdd9a515ff.tar.gz |
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.c | 2 |
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; |