A few compiler warnings suppressed.

This commit is contained in:
antirez
2012-04-24 11:11:55 +02:00
parent a66a496349
commit e54fe9a79f
3 changed files with 6 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;