]> git.eshelyaron.com Git - emacs.git/commitdiff
; json.c stylistic adjustments
authorPo Lu <luangruo@yahoo.com>
Mon, 1 Apr 2024 13:12:19 +0000 (21:12 +0800)
committerEshel Yaron <me@eshelyaron.com>
Tue, 2 Apr 2024 13:28:19 +0000 (15:28 +0200)
* src/json.c (json_parse_string): Stylistic changes.

(cherry picked from commit 7970f6bcfce7020030a7f87963496c06fa0017aa)

src/json.c

index ca9be26cd9ff73ee5058d6781be00fbfe5c387a3..c64d44b4bacda464c5ae912fe370a6f0ed425483 100644 (file)
@@ -1118,9 +1118,10 @@ json_parse_string (struct json_parser *parser, bool intern, bool leading_colon)
          ptrdiff_t nbytes
            = parser->byte_workspace_current - parser->byte_workspace;
          ptrdiff_t nchars = nbytes - chars_delta;
-         const char *str = (const char *)parser->byte_workspace;
-         return intern ? intern_c_multibyte (str, nchars, nbytes)
-                       : make_multibyte_string (str, nchars, nbytes);
+         const char *str = (const char *) parser->byte_workspace;
+         return (intern
+                 ? intern_c_multibyte (str, nchars, nbytes)
+                 : make_multibyte_string (str, nchars, nbytes));
        }
 
       if (c & 0x80)