X-Git-Url: https://gerrit.automotivelinux.org/gerrit/gitweb?a=blobdiff_plain;f=src%2Fwrap-json.c;h=6e604769b236000d5c410f202b713ebde14563b6;hb=7491c74e40512564bc361618a6f3d7e238b34dea;hp=e757c3692c9f656326e69a34996e4c3ed83d0d3e;hpb=4521c1e7ae5371ab9d639adc617d17fb4e8ded0c;p=src%2Fapp-framework-binder.git diff --git a/src/wrap-json.c b/src/wrap-json.c index e757c369..6e604769 100644 --- a/src/wrap-json.c +++ b/src/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;