diff options
Diffstat (limited to 'strings/json_lib.c')
-rw-r--r-- | strings/json_lib.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/strings/json_lib.c b/strings/json_lib.c index 413ce128149..625f6f8fff4 100644 --- a/strings/json_lib.c +++ b/strings/json_lib.c @@ -1,8 +1,6 @@ #include <my_global.h> #include <string.h> #include <m_ctype.h> - - #include "json_lib.h" /* @@ -1388,7 +1386,7 @@ int json_find_paths_next(json_engine_t *je, json_find_paths_t *state) if (!json_key_matches(je, &key_name)) continue; } - if (cur_step - state->paths[p_c].last_step == state->cur_depth) + if ((uint) (cur_step - state->paths[p_c].last_step) == state->cur_depth) path_found= TRUE; else { @@ -1421,7 +1419,7 @@ int json_find_paths_next(json_engine_t *je, json_find_paths_t *state) cur_step->n_item == state->array_counters[state->cur_depth]) { /* Array item matches. */ - if (cur_step - state->paths[p_c].last_step == state->cur_depth) + if ((uint) (cur_step - state->paths[p_c].last_step) == state->cur_depth) path_found= TRUE; else { |