Skip to content

Commit

Permalink
fix: Change string length type to size_t
Browse files Browse the repository at this point in the history
  • Loading branch information
badboy committed Apr 20, 2016
1 parent 2e11f0c commit 97ac0d1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion hiredis.h
Original file line number Diff line number Diff line change
Expand Up @@ -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 */
Expand Down

0 comments on commit 97ac0d1

Please sign in to comment.