From 4842b67ab590250d95ad4be5fe61380a09b1e8ea Mon Sep 17 00:00:00 2001 From: jacopo grandi Date: Mon, 22 Feb 2021 19:51:09 +0100 Subject: view levels and maxrange strat --- json/jsonparse.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'json/jsonparse.c') diff --git a/json/jsonparse.c b/json/jsonparse.c index 34587b5..9ac845c 100644 --- a/json/jsonparse.c +++ b/json/jsonparse.c @@ -23,7 +23,7 @@ void json_parse_array(char *json, void *temp, jsmntok_t *t, int r, char type) { *p = atoi(val); } if (type == 'f') { - float *p = (float*)(intptr_t)temp+sizeof(float)*i; + float *p = (float*)(intptr_t)temp+i; *p = atof(val); } } -- cgit v1.2.3-54-g00ecf