Skip to content

Commit

Permalink
xpath BUGFIX support for xpath length 256 and more
Browse files Browse the repository at this point in the history
  • Loading branch information
michalvasko committed Jul 11, 2017
1 parent 823b5bf commit a30a8f7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/xpath.c
Original file line number Diff line number Diff line change
Expand Up @@ -5783,7 +5783,7 @@ eval_predicate(struct lyxp_expr *exp, uint16_t *exp_idx, struct lyd_node *cur_no
int ret;
uint16_t i, j, orig_exp, brack2_exp;
uint32_t orig_pos, orig_size, pred_in_ctx;
uint8_t **pred_repeat, rep_size, open_brack;
uint16_t **pred_repeat, rep_size, open_brack;
struct lyxp_set set2;
struct lyd_node *orig_parent;

Expand Down
2 changes: 1 addition & 1 deletion src/xpath.h
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ struct lyxp_expr {
enum lyxp_token *tokens; /* array of tokens */
uint16_t *expr_pos; /* array of pointers to the expression in expr (idx of the beginning) */
uint8_t *tok_len; /* array of token lengths in expr */
uint8_t **repeat; /* array of the operator token indices that succeed this expression ended with 0,
uint16_t **repeat; /* array of the operator token indices that succeed this expression ended with 0,
more in the comment after this declaration */
uint16_t used; /* used array items */
uint16_t size; /* allocated array items */
Expand Down

0 comments on commit a30a8f7

Please sign in to comment.