summaryrefslogtreecommitdiff
path: root/src/json.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2016-02-27 22:59:41 +0100
committerBram Moolenaar <Bram@vim.org>2016-02-27 22:59:41 +0100
commit0f526f5652e0a5432493b3f2a1cb34ab99a9da0a (patch)
tree66e9156a6f6d0ef1686a4766803004ef29cba1e3 /src/json.c
parentdae8d21dd291df6a6679a00be64e18bca0156576 (diff)
downloadvim-git-0f526f5652e0a5432493b3f2a1cb34ab99a9da0a.tar.gz
patch 7.4.1444v7.4.1444
Problem: Can't build with JSON but without multi-byte. Solution: Fix pointer name.
Diffstat (limited to 'src/json.c')
-rw-r--r--src/json.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/json.c b/src/json.c
index 518a75a68..bbc27b440 100644
--- a/src/json.c
+++ b/src/json.c
@@ -101,7 +101,7 @@ write_string(garray_T *gap, char_u *str)
/* always use utf-8 encoding, ignore 'encoding' */
c = utf_ptr2char(res);
#else
- c = (int)*(p);
+ c = *res;
#endif
switch (c)
@@ -142,7 +142,7 @@ write_string(garray_T *gap, char_u *str)
#ifdef FEAT_MBYTE
res += utf_ptr2len(res);
#else
- ++p;
+ ++res;
#endif
}
ga_append(gap, '"');