mirror of
https://git.rwth-aachen.de/acs/public/villas/node/
synced 2025-03-09 00:00:00 +01:00
json_format: fixed a bug, int values are now saved in the data.i field instead of data.f
This commit is contained in:
parent
8e37e41947
commit
89f4e9b768
1 changed files with 1 additions and 1 deletions
|
@ -164,7 +164,7 @@ static int json_unpack_sample(struct io *io, json_t *json_smp, struct sample *sm
|
|||
break;
|
||||
|
||||
case JSON_INTEGER:
|
||||
smp->data[i].f = json_integer_value(json_value);
|
||||
smp->data[i].i = json_integer_value(json_value);
|
||||
sample_set_data_format(smp, i, SAMPLE_DATA_FORMAT_INT);
|
||||
break;
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue