File tree 1 file changed +3
-3
lines changed
1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -374,7 +374,7 @@ static int processLineItem(redisReader *r) {
374
374
if (r -> fn && r -> fn -> createString )
375
375
obj = r -> fn -> createString (cur ,p ,len );
376
376
else
377
- obj = (void * )(size_t )(cur -> type );
377
+ obj = (void * )(uintptr_t )(cur -> type );
378
378
}
379
379
380
380
if (obj == NULL ) {
@@ -439,7 +439,7 @@ static int processBulkItem(redisReader *r) {
439
439
if (r -> fn && r -> fn -> createString )
440
440
obj = r -> fn -> createString (cur ,s + 2 ,len );
441
441
else
442
- obj = (void * )(long )cur -> type ;
442
+ obj = (void * )(uintptr_t )cur -> type ;
443
443
success = 1 ;
444
444
}
445
445
}
@@ -536,7 +536,7 @@ static int processAggregateItem(redisReader *r) {
536
536
if (r -> fn && r -> fn -> createArray )
537
537
obj = r -> fn -> createArray (cur ,elements );
538
538
else
539
- obj = (void * )(long )cur -> type ;
539
+ obj = (void * )(uintptr_t )cur -> type ;
540
540
541
541
if (obj == NULL ) {
542
542
__redisReaderSetErrorOOM (r );
You can’t perform that action at this time.
0 commit comments