fixes marshalling of float and double

This commit is contained in:
overflowerror 2021-05-04 15:57:05 +02:00
parent 756ead18ab
commit 6733c3a4f3

View file

@ -73,11 +73,11 @@ static jsonValue_t* json_marshall_long_long(void* value) {
}
static jsonValue_t* json_marshall_float(void* value) {
return json_long(*((float*) value));
return json_double(*((float*) value));
}
static jsonValue_t* json_marshall_double(void* value) {
return json_long(*((double*) value));
return json_double(*((double*) value));
}
static jsonValue_t* json_marshall_string(void* value) {