Skip to content

Commit 4c24dfa

Browse files
Merge branch 'hotfix/double_precision'
2 parents cdd437e + 535ff5d commit 4c24dfa

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

library.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,10 +65,10 @@ PHPAPI void redis_client_list_reply(INTERNAL_FUNCTION_PARAMETERS, RedisSock *red
6565
#define REDIS_DOUBLE_TO_STRING(dbl_str, dbl_len, dbl) \
6666
char dbl_decsep; \
6767
dbl_decsep = '.'; \
68-
dbl_str = _php_math_number_format_ex(dbl, 8, &dbl_decsep, 1, NULL, 0); \
68+
dbl_str = _php_math_number_format_ex(dbl, 16, &dbl_decsep, 1, NULL, 0); \
6969
dbl_len = strlen(dbl_str);
7070
#else
7171
#define REDIS_DOUBLE_TO_STRING(dbl_str, dbl_len, dbl) \
72-
dbl_str = _php_math_number_format(dbl, 8, '.', '\x00'); \
72+
dbl_str = _php_math_number_format(dbl, 16, '.', '\x00'); \
7373
dbl_len = strlen(dbl_str);
7474
#endif

0 commit comments

Comments
 (0)