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/diff.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/diff.c')
-rw-r--r-- | src/diff.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/diff.c b/src/diff.c index 88dc8a653..1b0ad4778 100644 --- a/src/diff.c +++ b/src/diff.c @@ -1301,7 +1301,7 @@ ex_diffpatch(exarg_T *eap) if (curbuf->b_fname != NULL) { newname = vim_strnsave(curbuf->b_fname, - (int)(STRLEN(curbuf->b_fname) + 4)); + STRLEN(curbuf->b_fname) + 4); if (newname != NULL) STRCAT(newname, ".new"); } |