Mercurial > vim
changeset 8304:097886a3379b v7.4.1444
commit https://github.com/vim/vim/commit/0f526f5652e0a5432493b3f2a1cb34ab99a9da0a
Author: Bram Moolenaar <Bram@vim.org>
Date: Sat Feb 27 22:59:41 2016 +0100
patch 7.4.1444
Problem: Can't build with JSON but without multi-byte.
Solution: Fix pointer name.
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Sat, 27 Feb 2016 23:00:04 +0100 |
parents | 88207f4b861a |
children | e969ec3497e7 |
files | src/json.c src/version.c |
diffstat | 2 files changed, 4 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- 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, '"');