fix: Change string length type to size_t

This commit is contained in:
Jan-Erik Rediger 2016-04-20 17:00:14 +02:00
parent 2e11f0c892
commit 97ac0d1f50
1 changed files with 1 additions and 1 deletions

View File

@ -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 */