summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSebastien Douheret <sebastien.douheret@iot.bzh>2018-06-22 17:34:39 +0200
committerSebastien Douheret <sebastien.douheret@iot.bzh>2018-06-22 17:38:06 +0200
commit43ec9716bf83d8a6e5ff15909705cb1adc3c1892 (patch)
tree151f6adb84c5f2387551929b6e1f2cdda5745236
parent9a1f7ea8029ff518d81ed7f13000a7c0bddcca5c (diff)
Fix warnings due to json-c evolutionflounder_5.99.1flounder/5.99.15.99.1
Library json-c now returns size_t instead of int. Change-Id: Ib4f8bcd5dc6382fb3d189e83707a39dee8e14683 Signed-off-by: Sebastien Douheret <sebastien.douheret@iot.bzh>
-rw-r--r--wrap-json.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/wrap-json.c b/wrap-json.c
index e757c36..6e60476 100644
--- a/wrap-json.c
+++ b/wrap-json.c
@@ -948,7 +948,7 @@ static struct json_object *clone_object(struct json_object *object, int subdepth
*/
static struct json_object *clone_array(struct json_object *array, int subdepth)
{
- int n = json_object_array_length(array);
+ int n = (int)json_object_array_length(array);
struct json_object *r = json_object_new_array();
while (n) {
n--;
@@ -1183,8 +1183,8 @@ static int jcmp(struct json_object *x, struct json_object *y, int inc, int sort)
break;
case json_type_array:
- nx = json_object_array_length(x);
- ny = json_object_array_length(y);
+ nx = (int)json_object_array_length(x);
+ ny = (int)json_object_array_length(y);
r = nx - ny;
if (r > 0 && inc)
r = 0;