1
0
mirror of https://github.com/MariaDB/server.git synced 2025-08-08 11:22:35 +03:00

Remove compiler warnings

This commit is contained in:
Monty
2017-12-02 21:50:08 +02:00
parent 52ca07c2a0
commit 60df17e95a
6 changed files with 9 additions and 8 deletions

View File

@@ -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
{