Visitar URL original
Minor tweak · phpredis/phpredis@15be8f0 · GitHub
Skip to content

Commit 15be8f0

Browse files
Minor tweak
1 parent eba33d4 commit 15be8f0

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

‎library.h‎

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,12 @@
33

44
#include "php_redis.h"
55

6+
#include "ffc.h"
7+
8+
static inline double redis_strtod(const char *str, size_t len) {
9+
return ffc_parse_double_simple(len, str, NULL);
10+
}
11+
612
/* Non cluster command helper */
713
#define REDIS_SPPRINTF(ret, kw, fmt, ...) \
814
redis_spprintf(redis_sock, NULL, ret, kw, fmt, ##__VA_ARGS__)

0 commit comments

Comments
 (0)