/*
- * Copyright (C) 2016, 2017, 2018 "IoT.bzh"
+ * Copyright (C) 2015-2020 "IoT.bzh"
* Author José Bollo <jose.bollo@iot.bzh>
*
* Licensed under the Apache License, Version 2.0 (the "License");
goto error;
if (json_object_is_type(item, json_type_array)) {
/* Is an array! */
- count = json_object_array_length(item);
+ count = (int)json_object_array_length(item);
index = 0;
while(index < count) {
rc = packsingle(msg, subsig, json_object_array_get_idx(item, index++));
}
/* iterate over elements */
- count = json_object_array_length(list);
+ count = (int)json_object_array_length(list);
index = 0;
for (;;) {
/* check state */