diff options
author | Mattias EngdegÄrd <mattiase@acm.org> | 2024-04-04 15:48:09 +0200 |
---|---|---|
committer | Mattias EngdegÄrd <mattiase@acm.org> | 2024-04-04 18:40:14 +0200 |
commit | 4a74999a735d9c0980d119dedf266ac2035e3ae9 (patch) | |
tree | c9483ce2ad7d07b900450e978f31070438e9ab82 /src/json.c | |
parent | c2e0ebf752cef595de16140933f51e810e0d4061 (diff) | |
download | emacs-4a74999a735d9c0980d119dedf266ac2035e3ae9.tar.gz emacs-4a74999a735d9c0980d119dedf266ac2035e3ae9.tar.bz2 emacs-4a74999a735d9c0980d119dedf266ac2035e3ae9.zip |
; * src/json.c: Comment correction
Diffstat (limited to 'src/json.c')
-rw-r--r-- | src/json.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/json.c b/src/json.c index 702350b1b09..140c3625d4d 100644 --- a/src/json.c +++ b/src/json.c @@ -1055,7 +1055,7 @@ json_parse_string (struct json_parser *parser, bool intern, bool leading_colon) json_byte_workspace_reset (parser); if (leading_colon) json_byte_workspace_put (parser, ':'); - ptrdiff_t chars_delta = 0; /* nchars - nbytes */ + ptrdiff_t chars_delta = 0; /* nbytes - nchars */ for (;;) { /* This if is only here for a possible speedup. If there are 4 @@ -1105,7 +1105,7 @@ json_parse_string (struct json_parser *parser, bool intern, bool leading_colon) if (c & 0x80) { /* Parse UTF-8, strictly. This is the correct thing to do - whether or not the input is a unibyte or multibyte string. */ + whether the input is a unibyte or multibyte string. */ json_byte_workspace_put (parser, c); unsigned char c1 = json_input_get (parser); if ((c1 & 0xc0) != 0x80) |