X-Git-Url: https://git.saurik.com/redis.git/blobdiff_plain/8562798308391d489016b3995d438b6187b5980a..89423052cab4700291f290819d53f4fbb8dabf95:/src/t_zset.c diff --git a/src/t_zset.c b/src/t_zset.c index d482d4c2..4812709e 100644 --- a/src/t_zset.c +++ b/src/t_zset.c @@ -1259,8 +1259,11 @@ int zuiNext(zsetopsrc *op, zsetopval *val) { if (op->type == REDIS_SET) { iterset *it = &op->iter.set; if (op->encoding == REDIS_ENCODING_INTSET) { - if (!intsetGet(it->is.is,it->is.ii,(int64_t*)&val->ell)) + int64_t ell; + + if (!intsetGet(it->is.is,it->is.ii,&ell)) return 0; + val->ell = ell; val->score = 1.0; /* Move to next element. */