From bd1fb85f316cbb47372718fd17f5339e18809e79 Mon Sep 17 00:00:00 2001 From: Orgad Shaneh Date: Wed, 30 Mar 2022 09:10:21 +0300 Subject: [PATCH] Fix warnings on Win64 read.c:399:27: warning: cast to pointer from integer of different size [-Wint-to-pointer-cast] 399 | obj = (void*)(long)cur->type; | ^ --- read.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/read.c b/read.c index de62b9ab0..2fa3634ee 100644 --- a/read.c +++ b/read.c @@ -439,7 +439,7 @@ static int processBulkItem(redisReader *r) { if (r->fn && r->fn->createString) obj = r->fn->createString(cur,s+2,len); else - obj = (void*)(long)cur->type; + obj = (void*)(size_t)cur->type; success = 1; } } @@ -536,7 +536,7 @@ static int processAggregateItem(redisReader *r) { if (r->fn && r->fn->createArray) obj = r->fn->createArray(cur,elements); else - obj = (void*)(long)cur->type; + obj = (void*)(size_t)cur->type; if (obj == NULL) { __redisReaderSetErrorOOM(r);