X-Git-Url: https://gerrit.automotivelinux.org/gerrit/gitweb?a=blobdiff_plain;f=src%2Fdevtools%2Fexprefs.c;h=5b0a390c731bbe0962848aa15f6d9b9cc5f03c0c;hb=65353dce81a629e042800bb7b86fcd869a76727e;hp=4ea44b4d3c1c43482d163ed93a95bdc1eeb10d2c;hpb=45c8372c2b4137691a38c2a04f4a5759a110f2f7;p=src%2Fapp-framework-binder.git diff --git a/src/devtools/exprefs.c b/src/devtools/exprefs.c index 4ea44b4d..5b0a390c 100644 --- a/src/devtools/exprefs.c +++ b/src/devtools/exprefs.c @@ -1,5 +1,5 @@ /* - * Copyright (C) 2016, 2017 "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 });