mirror of
https://github.com/akheron/jansson.git
synced 2025-04-07 06:25:02 +00:00
Fixed "comparison between signed and unsigned" warning
This commit is contained in:
parent
7121134abd
commit
b49280be72
2 changed files with 2 additions and 2 deletions
|
@ -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) {
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Add table
Reference in a new issue