From 5d35cd8a6675656ab80d845b0b32162c9587886a Mon Sep 17 00:00:00 2001 From: melon Date: Sat, 30 Dec 2023 22:54:47 +0100 Subject: [PATCH] change cast of pointer to uintptr-t --- src/engine/external/json-parser/json.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/engine/external/json-parser/json.c b/src/engine/external/json-parser/json.c index 260527ca2..4e3752a07 100644 --- a/src/engine/external/json-parser/json.c +++ b/src/engine/external/json-parser/json.c @@ -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; }