diff options
author | Alex Smith <aes7mv@virginia.edu> | 2020-10-16 18:35:58 -0400 |
---|---|---|
committer | michael-grunder <michael.grunder@gmail.com> | 2021-02-25 21:25:17 -0800 |
commit | 83c14504257de168c45ae7730a00c930ab17cfa3 (patch) | |
tree | 56b0c640dff32b831c2d883d841b9622c790193a /hiredis.c | |
parent | c6646cb19242b0e0966760b38e7df74742b3a7b2 (diff) |
read: Add support for the RESP3 bignum type
Diffstat (limited to 'hiredis.c')
-rw-r--r-- | hiredis.c | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -114,6 +114,7 @@ void freeReplyObject(void *reply) { case REDIS_REPLY_STRING: case REDIS_REPLY_DOUBLE: case REDIS_REPLY_VERB: + case REDIS_REPLY_BIGNUM: hi_free(r->str); break; } @@ -131,7 +132,8 @@ static void *createStringObject(const redisReadTask *task, char *str, size_t len assert(task->type == REDIS_REPLY_ERROR || task->type == REDIS_REPLY_STATUS || task->type == REDIS_REPLY_STRING || - task->type == REDIS_REPLY_VERB); + task->type == REDIS_REPLY_VERB || + task->type == REDIS_REPLY_BIGNUM); /* Copy string value */ if (task->type == REDIS_REPLY_VERB) { |