X-Git-Url: https://git.saurik.com/redis.git/blobdiff_plain/8562798308391d489016b3995d438b6187b5980a..1858da2faae3b6a8becf4f7eef3f712d6e4b986b:/src/t_zset.c diff --git a/src/t_zset.c b/src/t_zset.c index d482d4c2..50ad8d43 100644 --- a/src/t_zset.c +++ b/src/t_zset.c @@ -1259,7 +1259,9 @@ 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 = val->ell; + + if (!intsetGet(it->is.is,it->is.ii,&ell)) return 0; val->score = 1.0;