Library json-c now returns size_t instead of int.
Change-Id: Ib4f8bcd5dc6382fb3d189e83707a39dee8e14683
Signed-off-by: Sebastien Douheret <sebastien.douheret@iot.bzh>
*/
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--;
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;