]> git.saurik.com Git - redis.git/blobdiff - src/t_zset.c
Test "Turning off AOF kills the background writing child if any" is now more reliable.
[redis.git] / src / t_zset.c
index d482d4c2f743a199ee41af3e82a86dd8e8544848..50ad8d433d2d7988dff5cd0829ad70c3638d5cca 100644 (file)
@@ -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;