Revert "use long long instead of size_t make it more safe"

This reverts commit 2c75f2cf1a.

After further analysis, it is very unlikely that we'll raise the
string size limit to > 512MB, and at the same time such big strings
will be used in 32 bit systems.

Better to revert to size_t so that 32 bit processors will not be
forced to use a 64 bit counter in normal operations, that is currently
completely useless.
This commit is contained in:
antirez
2013-05-08 09:59:51 +02:00
parent c1ae7d2377
commit 0ae1b5b0a1
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 long popcount(void *s, long count);
size_t popcount(void *s, long count);
void redisSetProcTitle(char *title);
/* networking.c -- Networking and Client related operations */