diff options
author | Bram Moolenaar <Bram@vim.org> | 2020-06-12 22:59:11 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2020-06-12 22:59:11 +0200 |
commit | 71ccd03ee8a43b20000214a9c99dcc90f039edca (patch) | |
tree | b5e89de8afbba2a8981d68b578514df046cb4aad /src/json.c | |
parent | 722e505d1a55dfde5ab62241d10da91d2e10c3c1 (diff) | |
download | vim-git-71ccd03ee8a43b20000214a9c99dcc90f039edca.tar.gz |
patch 8.2.0967: unnecessary type casts for vim_strnsave()v8.2.0967
Problem: Unnecessary type casts for vim_strnsave().
Solution: Remove the type casts.
Diffstat (limited to 'src/json.c')
-rw-r--r-- | src/json.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/json.c b/src/json.c index 2720abfca..8eb6680be 100644 --- a/src/json.c +++ b/src/json.c @@ -662,7 +662,7 @@ json_decode_item(js_read_T *reader, typval_T *res, int options) if (cur_item != NULL) { cur_item->v_type = VAR_STRING; - cur_item->vval.v_string = vim_strnsave(key, (int)(p - key)); + cur_item->vval.v_string = vim_strnsave(key, p - key); top_item->jd_key = cur_item->vval.v_string; } reader->js_used += (int)(p - key); |