summaryrefslogtreecommitdiff
path: root/src/cmdexpand.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/cmdexpand.c
parentda84ac2a6f467d0b9eddcc8709433cda75d16a41 (diff)
downloadvim-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/cmdexpand.c')
-rw-r--r--src/cmdexpand.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cmdexpand.c b/src/cmdexpand.c
index f84bf7abc..1e3398713 100644
--- a/src/cmdexpand.c
+++ b/src/cmdexpand.c
@@ -2555,7 +2555,7 @@ ExpandUserDefined(
{
if (ga_grow(&ga, 1) == FAIL)
break;
- ((char_u **)ga.ga_data)[ga.ga_len] = vim_strnsave(s, (int)(e - s));
+ ((char_u **)ga.ga_data)[ga.ga_len] = vim_strnsave(s, e - s);
++ga.ga_len;
}