summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authornot-a-robot <not-a-robot@rediger.net>2016-04-20 18:17:33 +0200
committernot-a-robot <not-a-robot@rediger.net>2016-04-20 18:17:33 +0200
commit35a16d6f69aed97efd8ae3542a72e44c5f9ecaee (patch)
tree2136bb7a275a77ed509abbed7e1d9e79296fda17
parent278745d8405fcdee8732e0bec3580694f8ce10c4 (diff)
parent97ac0d1f507dcb979e865735fd977d1d3e34d627 (diff)
Auto merge of #416 - redis:string-len-size_t, r=badboy
fix: Change string length type to size_t
-rw-r--r--hiredis.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/hiredis.h b/hiredis.h
index 757677e..d2a6e90 100644
--- a/hiredis.h
+++ b/hiredis.h
@@ -112,7 +112,7 @@ extern "C" {
typedef struct redisReply {
int type; /* REDIS_REPLY_* */
long long integer; /* The integer when type is REDIS_REPLY_INTEGER */
- int len; /* Length of string */
+ size_t len; /* Length of string */
char *str; /* Used for both REDIS_REPLY_ERROR and REDIS_REPLY_STRING */
size_t elements; /* number of elements, for REDIS_REPLY_ARRAY */
struct redisReply **element; /* elements vector for REDIS_REPLY_ARRAY */