Skip to content

Commit

Permalink
Revert "Fix jqlang#2051 -- iterate arrays backwards in path ctx"
Browse files Browse the repository at this point in the history
This reverts commit 9c9013b.
  • Loading branch information
Leonid Usov committed Feb 1, 2020
1 parent e20de9b commit e1da52b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/execute.c
Original file line number Diff line number Diff line change
Expand Up @@ -902,7 +902,7 @@ jv jq_next(jq_state *jq) {
is_last = idx == len - 1;
if (keep_going) {
key = jv_number(idx);
value = jv_array_get(jv_copy(container), jq->subexp_nest ? idx : len - (idx + 1));
value = jv_array_get(jv_copy(container), idx);
}
} else if (jv_get_kind(container) == JV_KIND_OBJECT) {
if (opcode == EACH || opcode == EACH_OPT) idx = jv_object_iter(container);
Expand Down

0 comments on commit e1da52b

Please sign in to comment.