Skip to content

Commit 11f25f6

Browse files
committed
Missed the compiler issue in the measure_ex function.
Change-Id: I5ea71b9685b5a67b62d7391e83eab9c25fe62bab Type: Bug Fix
1 parent f056f2c commit 11f25f6

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

json-builder.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -593,7 +593,8 @@ size_t json_measure_ex (json_value * value, json_serialize_opts opts)
593593
MEASURE_NEWLINE();
594594
}
595595

596-
value = value->u.array.values [((json_builder_value *) value)->length_iterated ++];
596+
((json_builder_value *) value)->length_iterated++;
597+
value = value->u.array.values [((json_builder_value *) value)->length_iterated - 1];
597598
continue;
598599

599600
case json_object:

0 commit comments

Comments
 (0)