From: Stewart Smith Date: Sun, 10 Jan 2010 23:41:12 +0000 (+1100) Subject: don't convert between 16 and 32 bit when you don't need to X-Git-Tag: 0.40~125^2 X-Git-Url: https://git.m6w6.name/?a=commitdiff_plain;h=bf4da83be9c867a2ecb10615297aa5dd5cb1d6ab;p=m6w6%2Flibmemcached don't convert between 16 and 32 bit when you don't need to --- diff --git a/libmemcached/hosts.c b/libmemcached/hosts.c index 683b0843..a923ec71 100644 --- a/libmemcached/hosts.c +++ b/libmemcached/hosts.c @@ -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)