Browse Source

use size_t instead

pull/63/head
Max Lv 10 years ago
parent
commit
39a52da457
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; values_size = sizeof (*value->u.object.values) * value->u.object.length;
if (! ((*(void **) &value->u.object.values) = json_alloc if (! ((*(void **) &value->u.object.values) = json_alloc
(state, values_size + ((unsigned long long) value->u.object.values), 0)) )
(state, values_size + ((size_t) value->u.object.values), 0)) )
{ {
return 0; return 0;
} }

Loading…
Cancel
Save