Skip to content

Commit f5fc23c

Browse files
Merge branch 'hotfix/double_precision' into develop
2 parents 20a3ef4 + 535ff5d commit f5fc23c

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
@@ -66,10 +66,10 @@ PHPAPI void redis_client_list_reply(INTERNAL_FUNCTION_PARAMETERS, RedisSock *red
6666
#define REDIS_DOUBLE_TO_STRING(dbl_str, dbl_len, dbl) \
6767
char dbl_decsep; \
6868
dbl_decsep = '.'; \
69-
dbl_str = _php_math_number_format_ex(dbl, 8, &dbl_decsep, 1, NULL, 0); \
69+
dbl_str = _php_math_number_format_ex(dbl, 16, &dbl_decsep, 1, NULL, 0); \
7070
dbl_len = strlen(dbl_str);
7171
#else
7272
#define REDIS_DOUBLE_TO_STRING(dbl_str, dbl_len, dbl) \
73-
dbl_str = _php_math_number_format(dbl, 8, '.', '\x00'); \
73+
dbl_str = _php_math_number_format(dbl, 16, '.', '\x00'); \
7474
dbl_len = strlen(dbl_str);
7575
#endif

0 commit comments

Comments
 (0)