A few compiler warnings suppressed.

This commit is contained in:
antirez
2012-04-24 11:11:55 +02:00
parent 38b60dea54
commit 9de5d4600a
2 changed files with 5 additions and 3 deletions

View 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;