diff --git a/libtransmission/JSON_parser.c b/libtransmission/JSON_parser.c index 93e98c827..a94efa33b 100644 --- a/libtransmission/JSON_parser.c +++ b/libtransmission/JSON_parser.c @@ -495,7 +495,7 @@ static int parse_parse_buffer(JSON_parser jc) /*sscanf(jc->parse_buffer, "%Lf", &value.vu.float_value);*/ /* not checking with end pointer b/c there may be trailing ws */ - value.vu.float_value = strtold(jc->parse_buffer, NULL); + value.vu.float_value = strtod(jc->parse_buffer, NULL); } break; case JSON_T_INTEGER: diff --git a/libtransmission/JSON_parser.h b/libtransmission/JSON_parser.h index 3780aae56..cb2a82bc3 100644 --- a/libtransmission/JSON_parser.h +++ b/libtransmission/JSON_parser.h @@ -54,7 +54,7 @@ typedef struct JSON_value_struct { union { JSON_int_t integer_value; - long double float_value; + double float_value; struct { const char* value;