From ef4256670f2c23bd3de3963c0dc4882599ac3300 Mon Sep 17 00:00:00 2001 From: Justin Brewer Date: Thu, 17 May 2018 20:19:12 -0500 Subject: Update createArray to take size_t This makes createArray consistent with createString, which also takes size_t. Bounds-check and unit tests are updated to allow up to min(SIZE_MAX,LLONG_MAX). Changelog is updated to mention this API break. Signed-off-by: Justin Brewer --- read.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'read.h') diff --git a/read.h b/read.h index 2988aa4..ec91e72 100644 --- a/read.h +++ b/read.h @@ -71,7 +71,7 @@ typedef struct redisReadTask { typedef struct redisReplyObjectFunctions { void *(*createString)(const redisReadTask*, char*, size_t); - void *(*createArray)(const redisReadTask*, int); + void *(*createArray)(const redisReadTask*, size_t); void *(*createInteger)(const redisReadTask*, long long); void *(*createNil)(const redisReadTask*); void (*freeObject)(void*); -- cgit v1.2.3