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 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); } } |