Unverified Commit 95a0c128 authored by Michael Grunder's avatar Michael Grunder Committed by GitHub
Browse files

Merge pull request #1058 from orgads/win64

Fix warnings on Win64
parents 47c3ecef eedb37a6
...@@ -374,7 +374,7 @@ static int processLineItem(redisReader *r) { ...@@ -374,7 +374,7 @@ static int processLineItem(redisReader *r) {
if (r->fn && r->fn->createString) if (r->fn && r->fn->createString)
obj = r->fn->createString(cur,p,len); obj = r->fn->createString(cur,p,len);
else else
obj = (void*)(size_t)(cur->type); obj = (void*)(uintptr_t)(cur->type);
} }
if (obj == NULL) { if (obj == NULL) {
...@@ -439,7 +439,7 @@ static int processBulkItem(redisReader *r) { ...@@ -439,7 +439,7 @@ static int processBulkItem(redisReader *r) {
if (r->fn && r->fn->createString) if (r->fn && r->fn->createString)
obj = r->fn->createString(cur,s+2,len); obj = r->fn->createString(cur,s+2,len);
else else
obj = (void*)(long)cur->type; obj = (void*)(uintptr_t)cur->type;
success = 1; success = 1;
} }
} }
...@@ -536,7 +536,7 @@ static int processAggregateItem(redisReader *r) { ...@@ -536,7 +536,7 @@ static int processAggregateItem(redisReader *r) {
if (r->fn && r->fn->createArray) if (r->fn && r->fn->createArray)
obj = r->fn->createArray(cur,elements); obj = r->fn->createArray(cur,elements);
else else
obj = (void*)(long)cur->type; obj = (void*)(uintptr_t)cur->type;
if (obj == NULL) { if (obj == NULL) {
__redisReaderSetErrorOOM(r); __redisReaderSetErrorOOM(r);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment