diff --git a/strings/json_lib.c b/strings/json_lib.c index 8930581f737..e28ec3ca460 100644 --- a/strings/json_lib.c +++ b/strings/json_lib.c @@ -1862,7 +1862,7 @@ static enum json_types smart_read_value(json_engine_t *je, if (json_skip_level(je)) goto err_return; - *value_len= (char *) je->s.c_str - *value; + *value_len= (int) ((char *) je->s.c_str - *value); } return je->value_type;