Skip to content

Commit bdd8031

Browse files
authored
Update json_encoder.c
1 parent aea6397 commit bdd8031

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

ext/json/json_encoder.c

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -54,10 +54,8 @@ static inline void php_json_pretty_print_char(smart_str *buf, int options, char
5454
static inline void php_json_pretty_print_indent(smart_str *buf, int options, const php_json_encoder *encoder) /* {{{ */
5555
{
5656
if (options & PHP_JSON_PRETTY_PRINT) {
57-
int i;
5857
smart_str_alloc(buf, encoder->depth * 4, 0);
59-
60-
for (i = 0; i < encoder->depth; ++i) {
58+
for (int i = 0; i < encoder->depth; ++i) {
6159
smart_str_appendl(buf, " ", 4);
6260
}
6361
}

0 commit comments

Comments
 (0)