don't convert between 16 and 32 bit when you don't need to
authorStewart Smith <stewart@flamingspork.com>
Sun, 10 Jan 2010 23:41:12 +0000 (10:41 +1100)
committerStewart Smith <stewart@flamingspork.com>
Sun, 10 Jan 2010 23:41:12 +0000 (10:41 +1100)
libmemcached/hosts.c

index 683b08435681855398e8a1a9d7bf1e24ac276fdf..a923ec71e8430bcf1698cd8099923cb14c9b57d5 100644 (file)
@@ -295,7 +295,7 @@ static memcached_return_t update_continuum(memcached_st *ptr)
 memcached_return_t memcached_server_push(memcached_st *ptr, memcached_server_st *list)
 {
   unsigned int x;
-  uint16_t count;
+  uint32_t count;
   memcached_server_st *new_host_list;
 
   if (!list)