change cast of pointer to uintptr-t

This commit is contained in:
melon 2023-12-30 22:54:47 +01:00
parent f298b28026
commit 5d35cd8a66

View file

@ -132,7 +132,7 @@ static int new_value (json_state * state,
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) value->u.object.values), 0)) ) (state, values_size + ((uintptr_t) value->u.object.values), 0)) )
{ {
return 0; return 0;
} }