Offset should be size_t

This commit is contained in:
Pieter Noordhuis
2011-03-13 18:15:57 +01:00
parent 72690afdd2
commit 69298a05eb
2 changed files with 9 additions and 7 deletions

View File

@ -616,7 +616,7 @@ unsigned char *zzlInsertAt(unsigned char *zl, unsigned char *eptr, robj *ele, do
unsigned char *sptr;
char scorebuf[128];
int scorelen;
int offset;
size_t offset;
redisAssert(ele->encoding == REDIS_ENCODING_RAW);
scorelen = d2string(scorebuf,sizeof(scorebuf),score);