mirror of
https://github.com/ddnet/ddnet.git
synced 2024-11-18 05:58:19 +00:00
change cast of pointer to uintptr-t
This commit is contained in:
parent
f298b28026
commit
5d35cd8a66
2
src/engine/external/json-parser/json.c
vendored
2
src/engine/external/json-parser/json.c
vendored
|
@ -132,7 +132,7 @@ static int new_value (json_state * state,
|
|||
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 + ((uintptr_t) value->u.object.values), 0)) )
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue