summaryrefslogtreecommitdiff
path: root/src/util.h
diff options
context:
space:
mode:
authorGuy Benoish <guy.benoish@redislabs.com>2017-01-11 19:24:19 +0200
committerGuy Benoish <guy.benoish@redislabs.com>2017-01-11 19:24:19 +0200
commit56c01c959ab6e86b5fbb2f882a30324619987947 (patch)
tree46c3bf721e4a311192bacac229bfa46aa1088075 /src/util.h
parent634b0966106b48cbf2c51fadafa7482a5af77e64 (diff)
downloadredis-56c01c959ab6e86b5fbb2f882a30324619987947.tar.gz
enlarged buffer given to ld2string
Diffstat (limited to 'src/util.h')
-rw-r--r--src/util.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/util.h b/src/util.h
index d7784495b..91acde047 100644
--- a/src/util.h
+++ b/src/util.h
@@ -33,6 +33,11 @@
#include <stdint.h>
#include "sds.h"
+/* The maximum number of characters needed to represent a long double
+ * as a string (long double has a huge range).
+ * This should be the size of the buffer given to ld2string */
+#define MAX_LONG_DOUBLE_CHARS 5*1024
+
int stringmatchlen(const char *p, int plen, const char *s, int slen, int nocase);
int stringmatch(const char *p, const char *s, int nocase);
long long memtoll(const char *p, int *err);