Browse Source

Fix a compile error with mingw64

Fix an error below.

json.c:135:42: error: cast from pointer to integer of different size [-Werror=pointer-to-int-cast]
                   (state, values_size + ((unsigned long) value->u.object.values), 0)) )
                                          ^
pull/59/head
William Wong 10 years ago
parent
commit
1948330bc2
1 changed files with 1 additions and 1 deletions
  1. 2
      src/json.c

2
src/json.c

@ -132,7 +132,7 @@ static int new_value
values_size = sizeof (*value->u.object.values) * value->u.object.length;
if (! ((*(void **) &value->u.object.values) = json_alloc
(state, values_size + ((unsigned long) value->u.object.values), 0)) )
(state, values_size + ((unsigned long long) value->u.object.values), 0)) )
{
return 0;
}

Loading…
Cancel
Save