mirror of
https://github.com/transmission/transmission
synced 2024-12-26 09:37:56 +00:00
(trunk libT) #2360: ratio-limit becomes a strange value on uClibc
This commit is contained in:
parent
2e3a3e60aa
commit
d6acde35d3
2 changed files with 2 additions and 2 deletions
|
@ -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:
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue