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:
authorNicolas Favre-Felix <n.favrefelix@gmail.com>2010-07-17 14:29:32 +0400
committerNicolas Favre-Felix <n.favrefelix@gmail.com>2010-07-17 14:29:32 +0400
commit5bdb90cd989d2bb98e3cbbc461cf563b4e9bab9a (patch)
tree073e7ea200f5202c7665be1d2425f4e4021a65c3 /redis.c
parent958f1cb6070203086040331b25592c99365c9262 (diff)
Fixed float format (thanks to brstgt).
Diffstat (limited to 'redis.c')
-rwxr-xr-xredis.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/redis.c b/redis.c
index ef0d11e1..eb23e5a4 100755
--- a/redis.c
+++ b/redis.c
@@ -2687,7 +2687,7 @@ PHP_METHOD(Redis, zAdd) {
"%s" _NL /* key */
"$%d" _NL /* score_len */
- "%f" _NL /* score */
+ "%F" _NL /* score */
"$%d" _NL /* val_len */
"%s" _NL /* val */
@@ -2842,10 +2842,10 @@ PHP_METHOD(Redis, zDeleteRangeByScore)
"%s" _NL /* key */
"$%d" _NL /* start_len */
- "%f" _NL /* start */
+ "%F" _NL /* start */
"$%d" _NL /* end_len */
- "%f" _NL /* end */
+ "%F" _NL /* end */
, key_len, key, key_len
, double_length(start), start
@@ -2985,10 +2985,10 @@ PHP_METHOD(Redis, zRangeByScore)
"%s" _NL /* key */\
\
"$%d" _NL /* start_len */\
- "%f" _NL /* start */\
+ "%F" _NL /* start */\
\
"$%d" _NL /* end_len */\
- "%f" _NL /* end */
+ "%F" _NL /* end */
#define BASIC_FORMAT_WITH_LIMIT BASIC_FORMAT\
"$5" _NL\
"LIMIT" _NL\
@@ -3167,7 +3167,7 @@ PHPAPI void generic_incrby_method(INTERNAL_FUNCTION_PARAMETERS, char *keyword, i
"%s" _NL /* key */
"$%d" _NL
- "%f" _NL /* val */
+ "%F" _NL /* val */
"$%d" _NL
"%s" _NL /* member */