aboutsummaryrefslogtreecommitdiff
path: root/json
diff options
context:
space:
mode:
authorjacopo grandi <jak.sk8@hotmail.it>2021-02-22 19:51:09 +0100
committerjacopo grandi <jak.sk8@hotmail.it>2021-02-22 19:51:09 +0100
commit4842b67ab590250d95ad4be5fe61380a09b1e8ea (patch)
treeabb973efe013b3b0970b2f4434119f2c41644f65 /json
parentbd372bf19eb79e0bfd3f3d9cb20b4c6a49a8a5ed (diff)
view levels and maxrange strat
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 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);
}
}