1
0
Fork 0
mirror of https://github.com/transmission/transmission synced 2024-12-25 17:17:31 +00:00

(trunk libT) #2360: ratio-limit becomes a strange value on uClibc

This commit is contained in:
Charles Kerr 2009-10-14 13:22:42 +00:00
parent 2e3a3e60aa
commit d6acde35d3
2 changed files with 2 additions and 2 deletions

View file

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

View file

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