diff options
author | Jan-Erik Rediger <janerik@fnordig.de> | 2016-04-20 17:00:14 +0200 |
---|---|---|
committer | Jan-Erik Rediger <janerik@fnordig.de> | 2016-04-20 17:00:14 +0200 |
commit | 97ac0d1f507dcb979e865735fd977d1d3e34d627 (patch) | |
tree | dbd6f7759b455c32357ffde8a6626cbaf0f58cbd | |
parent | 2e11f0c892aff2e8e8fedebce6ac9bf48df64647 (diff) |
fix: Change string length type to size_t
-rw-r--r-- | hiredis.h | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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 */ |