Fixed "comparison between signed and unsigned" warning

This commit is contained in:
Daniel Griscom 2013-05-12 15:45:00 -04:00
parent 7121134abd
commit b49280be72
2 changed files with 2 additions and 2 deletions

View File

@ -516,7 +516,7 @@ in an array.
:type:`json_t *` respectively. Example::
/* array is a JSON array */
int index;
size_t index;
json_t *value;
json_array_foreach(array, index, value) {

View File

@ -402,7 +402,7 @@ static void test_circular()
static void test_array_foreach()
{
int index;
size_t index;
json_t *array1, *array2, *value;
array1 = json_pack("[sisisi]", "foo", 1, "bar", 2, "baz", 3);