Skip to content

Commit 0f526f5

Browse files
committed
patch 7.4.1444
Problem: Can't build with JSON but without multi-byte. Solution: Fix pointer name.
1 parent dae8d21 commit 0f526f5

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

src/json.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ write_string(garray_T *gap, char_u *str)
101101
/* always use utf-8 encoding, ignore 'encoding' */
102102
c = utf_ptr2char(res);
103103
#else
104-
c = (int)*(p);
104+
c = *res;
105105
#endif
106106

107107
switch (c)
@@ -142,7 +142,7 @@ write_string(garray_T *gap, char_u *str)
142142
#ifdef FEAT_MBYTE
143143
res += utf_ptr2len(res);
144144
#else
145-
++p;
145+
++res;
146146
#endif
147147
}
148148
ga_append(gap, '"');

src/version.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -743,6 +743,8 @@ static char *(features[]) =
743743

744744
static int included_patches[] =
745745
{ /* Add new patch number below this line */
746+
/**/
747+
1444,
746748
/**/
747749
1443,
748750
/**/

0 commit comments

Comments
 (0)