Fixed "comparison between signed and unsigned" warning
This commit is contained in:
parent
7121134abd
commit
b49280be72
@ -516,7 +516,7 @@ in an array.
|
|||||||
:type:`json_t *` respectively. Example::
|
:type:`json_t *` respectively. Example::
|
||||||
|
|
||||||
/* array is a JSON array */
|
/* array is a JSON array */
|
||||||
int index;
|
size_t index;
|
||||||
json_t *value;
|
json_t *value;
|
||||||
|
|
||||||
json_array_foreach(array, index, value) {
|
json_array_foreach(array, index, value) {
|
||||||
|
@ -402,7 +402,7 @@ static void test_circular()
|
|||||||
|
|
||||||
static void test_array_foreach()
|
static void test_array_foreach()
|
||||||
{
|
{
|
||||||
int index;
|
size_t index;
|
||||||
json_t *array1, *array2, *value;
|
json_t *array1, *array2, *value;
|
||||||
|
|
||||||
array1 = json_pack("[sisisi]", "foo", 1, "bar", 2, "baz", 3);
|
array1 = json_pack("[sisisi]", "foo", 1, "bar", 2, "baz", 3);
|
||||||
|
Loading…
Reference in New Issue
Block a user