summaryrefslogtreecommitdiff
path: root/src/json.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2020-06-12 22:59:11 +0200
committerBram Moolenaar <Bram@vim.org>2020-06-12 22:59:11 +0200
commit71ccd03ee8a43b20000214a9c99dcc90f039edca (patch)
treeb5e89de8afbba2a8981d68b578514df046cb4aad /src/json.c
parent722e505d1a55dfde5ab62241d10da91d2e10c3c1 (diff)
downloadvim-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.c2
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);