Skip to content

Commit 95a0c12

Browse files
Merge pull request #1058 from orgads/win64
Fix warnings on Win64
2 parents 47c3ece + eedb37a commit 95a0c12

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

read.c

+3-3
Original file line numberDiff line numberDiff line change
@@ -374,7 +374,7 @@ static int processLineItem(redisReader *r) {
374374
if (r->fn && r->fn->createString)
375375
obj = r->fn->createString(cur,p,len);
376376
else
377-
obj = (void*)(size_t)(cur->type);
377+
obj = (void*)(uintptr_t)(cur->type);
378378
}
379379

380380
if (obj == NULL) {
@@ -439,7 +439,7 @@ static int processBulkItem(redisReader *r) {
439439
if (r->fn && r->fn->createString)
440440
obj = r->fn->createString(cur,s+2,len);
441441
else
442-
obj = (void*)(long)cur->type;
442+
obj = (void*)(uintptr_t)cur->type;
443443
success = 1;
444444
}
445445
}
@@ -536,7 +536,7 @@ static int processAggregateItem(redisReader *r) {
536536
if (r->fn && r->fn->createArray)
537537
obj = r->fn->createArray(cur,elements);
538538
else
539-
obj = (void*)(long)cur->type;
539+
obj = (void*)(uintptr_t)cur->type;
540540

541541
if (obj == NULL) {
542542
__redisReaderSetErrorOOM(r);

0 commit comments

Comments
 (0)