Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/phpredis/phpredis.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--library.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/library.h b/library.h
index 0ee1f6fe..2f83b3ea 100644
--- a/library.h
+++ b/library.h
@@ -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