summaryrefslogtreecommitdiff
path: root/strings/json_lib.c
diff options
context:
space:
mode:
authorMonty <monty@mariadb.org>2017-12-02 21:50:08 +0200
committerMonty <monty@mariadb.org>2017-12-02 21:50:08 +0200
commitcbfe50b06593f10607f0ef7072faffb5e58013dd (patch)
treecae6cc713fb309f07edf63a890b0720f829e19c3 /strings/json_lib.c
parenta0f2285ccccac9a0a51865fb3760e61f1b854640 (diff)
downloadmariadb-git-bb-10.3-spider.tar.gz
Remove compiler warningsbb-10.3-spider
Diffstat (limited to 'strings/json_lib.c')
-rw-r--r--strings/json_lib.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/strings/json_lib.c b/strings/json_lib.c
index 92967dfe400..625f6f8fff4 100644
--- a/strings/json_lib.c
+++ b/strings/json_lib.c
@@ -1386,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
{
@@ -1419,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
{