aboutsummaryrefslogtreecommitdiff
path: root/json
diff options
context:
space:
mode:
authorjacopo grandi <jak.sk8@hotmail.it>2021-02-25 12:46:55 +0100
committerjacopo grandi <jak.sk8@hotmail.it>2021-02-25 12:46:55 +0100
commit23550f8120ebb41b1732d63d6d09c21bdb314c1a (patch)
tree671fc42497488769a7d747b25bed37aa5aaeed88 /json
parentdad432566a5c74f86dc4ba874e631115e0f469d1 (diff)
component representation revolution! Vive la révolution
Diffstat (limited to 'json')
-rw-r--r--json/jsonparse.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/json/jsonparse.c b/json/jsonparse.c
index 4b5096c..65fe3e9 100644
--- a/json/jsonparse.c
+++ b/json/jsonparse.c
@@ -35,7 +35,7 @@ void json_dump_array (char *str, void *arr, int len, char type) {
sprintf(str+cur, "[ "); cur = strlen(str);
for (int i=0; i<len; i++) {
if (type == 'i') {
- sprintf(str+cur, "%d", ((int)(intptr_t)(arr))[i]);
+ sprintf(str+cur, "%d", ((int*)(intptr_t)(arr))[i]);
cur = strlen(str);
}
if (type == 'c') {