diff options
author | michael-grunder <michael.grunder@gmail.com> | 2013-09-01 01:12:36 +0400 |
---|---|---|
committer | michael-grunder <michael.grunder@gmail.com> | 2013-09-01 01:12:36 +0400 |
commit | 4c24dfa5c5320e1bedbb3fe72286ede4e2f7117e (patch) | |
tree | 67b947f38f5e86b3c2fc3e490d5bb5a01d7d8468 | |
parent | cdd437ec5985e180323bac07d989adf054f2c023 (diff) | |
parent | 535ff5d13f02ac4639bc4bbfb240bef486bf8b8f (diff) |
Merge branch 'hotfix/double_precision'double_precision
-rw-r--r-- | library.h | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -65,10 +65,10 @@ PHPAPI void redis_client_list_reply(INTERNAL_FUNCTION_PARAMETERS, RedisSock *red #define REDIS_DOUBLE_TO_STRING(dbl_str, dbl_len, dbl) \ char dbl_decsep; \ dbl_decsep = '.'; \ - dbl_str = _php_math_number_format_ex(dbl, 8, &dbl_decsep, 1, NULL, 0); \ + dbl_str = _php_math_number_format_ex(dbl, 16, &dbl_decsep, 1, NULL, 0); \ dbl_len = strlen(dbl_str); #else #define REDIS_DOUBLE_TO_STRING(dbl_str, dbl_len, dbl) \ - dbl_str = _php_math_number_format(dbl, 8, '.', '\x00'); \ + dbl_str = _php_math_number_format(dbl, 16, '.', '\x00'); \ dbl_len = strlen(dbl_str); #endif |