in 32bit machine, popcount don't work with a input string length up to 512 MB,

bitcount commant may return negtive integer with string length more than 256 MB
This commit is contained in:
Jiahao Huang
2013-05-07 19:55:57 +08:00
parent 5c9f6d4f55
commit e3ed78d43b
2 changed files with 3 additions and 3 deletions

View File

@ -984,7 +984,7 @@ long long mstime(void);
void getRandomHexChars(char *p, unsigned int len);
uint64_t crc64(uint64_t crc, const unsigned char *s, uint64_t l);
void exitFromChild(int retcode);
long popcount(void *s, long count);
size_t popcount(void *s, long count);
void redisSetProcTitle(char *title);
/* networking.c -- Networking and Client related operations */