// When slashes are even, the object is valid and needs to be processed.
if (is_object) {
- ++depth;
-
- if (depth >= cache->objects->size) {
+ if (++depth >= cache->objects->size) {
state->status = f_memory_array_resize(depth + 2, sizeof(f_range_t), (void **) &cache->objects->array, &cache->objects->used, &cache->objects->size);
if (F_status_is_error(state->status)) break;
}
}
if (buffer.string[range->start] == f_fss_eol_s.string[0]) {
- ++depth;
-
- if (depth >= cache->objects->size) {
+ if (++depth >= cache->objects->size) {
state->status = f_memory_array_resize(depth + 2, sizeof(f_range_t), (void **) &cache->objects->array, &cache->objects->used, &cache->objects->size);
if (F_status_is_error(state->status)) break;
}