1
0
Fork 0
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:
Sonja Kolen 2018-08-01 14:36:31 +02:00
parent 8e37e41947
commit 89f4e9b768

View file

@ -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;