X-Git-Url: https://git.saurik.com/redis.git/blobdiff_plain/dbb27a0a90ca3800f5be1d8170e404b9e7b9bc44..89423052cab4700291f290819d53f4fbb8dabf95:/src/t_zset.c?ds=sidebyside 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. */