Fix object iterator skipping values
This commit is contained in:
parent
e15c54b7cc
commit
07c07cc06b
@ -104,6 +104,11 @@ static RJP_tree_node* irjp_object_iterator_next(RJP_object_iterator_impl* it){
|
||||
RJP_tree_node* last = irjp_pop_tree_stack(&it->stack);
|
||||
if(last->right){
|
||||
irjp_push_tree_stack(&it->stack, last->right);
|
||||
last = last->right;
|
||||
while(last->left){
|
||||
irjp_push_tree_stack(&it->stack, last->left);
|
||||
last = last->left;
|
||||
}
|
||||
}
|
||||
return irjp_object_iterator_current(it);
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user