]> git.saurik.com Git - redis.git/commitdiff
fixed for HT resize check 32bits overflow
authorantirez <antirez@gmail.com>
Wed, 29 Apr 2009 14:50:48 +0000 (16:50 +0200)
committerantirez <antirez@gmail.com>
Wed, 29 Apr 2009 14:50:48 +0000 (16:50 +0200)
redis.c

diff --git a/redis.c b/redis.c
index c120b9db175a351762fc78d4199ce0aa8c9aba9e..75c7eac4390761703cd0af8874a98ca89e9a9c85 100644 (file)
--- a/redis.c
+++ b/redis.c
@@ -27,7 +27,7 @@
  * POSSIBILITY OF SUCH DAMAGE.
  */
 
-#define REDIS_VERSION "0.091"
+#define REDIS_VERSION "0.100"
 
 #include "fmacros.h"
 
@@ -664,7 +664,7 @@ int serverCron(struct aeEventLoop *eventLoop, long long id, void *clientData) {
     /* If the percentage of used slots in the HT reaches REDIS_HT_MINFILL
      * we resize the hash table to save memory */
     for (j = 0; j < server.dbnum; j++) {
-        int size, used, vkeys;
+        long long size, used, vkeys;
 
         size = dictSlots(server.db[j].dict);
         used = dictSize(server.db[j].dict);