Skip to content

Commit a30a8f7

Browse files
committed
xpath BUGFIX support for xpath length 256 and more
1 parent 823b5bf commit a30a8f7

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/xpath.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5783,7 +5783,7 @@ eval_predicate(struct lyxp_expr *exp, uint16_t *exp_idx, struct lyd_node *cur_no
57835783
int ret;
57845784
uint16_t i, j, orig_exp, brack2_exp;
57855785
uint32_t orig_pos, orig_size, pred_in_ctx;
5786-
uint8_t **pred_repeat, rep_size, open_brack;
5786+
uint16_t **pred_repeat, rep_size, open_brack;
57875787
struct lyxp_set set2;
57885788
struct lyd_node *orig_parent;
57895789

src/xpath.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ struct lyxp_expr {
111111
enum lyxp_token *tokens; /* array of tokens */
112112
uint16_t *expr_pos; /* array of pointers to the expression in expr (idx of the beginning) */
113113
uint8_t *tok_len; /* array of token lengths in expr */
114-
uint8_t **repeat; /* array of the operator token indices that succeed this expression ended with 0,
114+
uint16_t **repeat; /* array of the operator token indices that succeed this expression ended with 0,
115115
more in the comment after this declaration */
116116
uint16_t used; /* used array items */
117117
uint16_t size; /* allocated array items */

0 commit comments

Comments
 (0)