10000 Merge pull request #1868 from phpredis/issue-1865 · ebogdanov/phpredis@ba4d3ba · GitHub
[go: up one dir, main page]

Skip to content

Commit ba4d3ba

Browse files
authored
Merge pull request phpredis#1868 from phpredis/issue-1865
Issue phpredis#1865
2 parents 72024af + 32be300 commit ba4d3ba

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

library.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -951,7 +951,7 @@ redis_cmd_append_sstr_dbl(smart_string *str, double value)
951951
int len;
952952

953953
/* Convert to string */
954-
len = snprintf(tmp, sizeof(tmp), "%.16g", value);
954+
len = snprintf(tmp, sizeof(tmp), "%.17g", value);
955955

956956
// Append the string
957957
return redis_cmd_append_sstr(str, tmp, len);

0 commit comments

Comments
 (0)
0