diff options
Diffstat (limited to 'json/jsonparse.c')
-rw-r--r-- | json/jsonparse.c | 2 |
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') { |