This commit is contained in:
Pieter Noordhuis 2011-03-08 22:14:46 +01:00
parent 8218db3dae
commit 9f9b60f974

View File

@ -449,7 +449,7 @@ int zzlCompareElements(unsigned char *eptr, unsigned char *cstr, unsigned int cl
return cmp; return cmp;
} }
unsigned int *zzlLength(robj *zobj) { unsigned int zzlLength(robj *zobj) {
unsigned char *zl = zobj->ptr; unsigned char *zl = zobj->ptr;
return ziplistLen(zl)/2; return ziplistLen(zl)/2;
} }