diff options
author | jacopo grandi <jak.sk8@hotmail.it> | 2021-02-22 19:51:09 +0100 |
---|---|---|
committer | jacopo grandi <jak.sk8@hotmail.it> | 2021-02-22 19:51:09 +0100 |
commit | 4842b67ab590250d95ad4be5fe61380a09b1e8ea (patch) | |
tree | abb973efe013b3b0970b2f4434119f2c41644f65 /json/jsonparse.c | |
parent | bd372bf19eb79e0bfd3f3d9cb20b4c6a49a8a5ed (diff) |
view levels and maxrange strat
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 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); } } |