From: Eric Lambert Date: Wed, 7 Oct 2009 23:41:10 +0000 (-0700) Subject: fixed casting issue that was causing udp buffered delete tests to fail X-Git-Tag: 0.34~12^2 X-Git-Url: https://git.m6w6.name/?a=commitdiff_plain;h=8a446d30fe5d3dfc915b8cd0383229b1f51fe7c4;p=m6w6%2Flibmemcached fixed casting issue that was causing udp buffered delete tests to fail --- diff --git a/libmemcached/memcached_delete.c b/libmemcached/memcached_delete.c index 8e732834..3fc7c037 100644 --- a/libmemcached/memcached_delete.c +++ b/libmemcached/memcached_delete.c @@ -36,7 +36,7 @@ memcached_return memcached_delete_by_key(memcached_st *ptr, return MEMCACHED_NO_SERVERS; server_key= memcached_generate_hash(ptr, master_key, master_key_length); - to_write= (uint8_t) (ptr->flags & MEM_BUFFER_REQUESTS) ? 0 : 1; + to_write= (uint8_t)((ptr->flags & MEM_BUFFER_REQUESTS) ? 0 : 1); bool no_reply= (ptr->flags & MEM_NOREPLY); if (ptr->flags & MEM_BINARY_PROTOCOL)