X-Git-Url: https://gerrit.automotivelinux.org/gerrit/gitweb?a=blobdiff_plain;f=src%2Fdevtools%2Fexprefs.c;h=5b0a390c731bbe0962848aa15f6d9b9cc5f03c0c;hb=65353dce81a629e042800bb7b86fcd869a76727e;hp=9af406111f5562652d37133fd10e054298fd2239;hpb=24d000c2290126abf88204089d132229d63f9a05;p=src%2Fapp-framework-binder.git diff --git a/src/devtools/exprefs.c b/src/devtools/exprefs.c index 9af40611..5b0a390c 100644 --- a/src/devtools/exprefs.c +++ b/src/devtools/exprefs.c @@ -1,5 +1,5 @@ /* - * Copyright (C) 2016, 2017, 2018 "IoT.bzh" + * Copyright (C) 2015-2020 "IoT.bzh" * Author José Bollo * * Licensed under the Apache License, Version 2.0 (the "License"); @@ -136,7 +136,7 @@ struct json_object *expand(struct path path) case json_type_array: /* expand the values of arrays */ i = 0; - n = json_object_array_length(path.object); + n = (int)json_object_array_length(path.object); while (i != n) { o = json_object_array_get_idx(path.object, i); x = expand((struct path){ .object = o, .upper = &path });