From: Brian Aker Date: Sun, 25 Oct 2009 02:46:10 +0000 (-0700) Subject: Trond's fix for Mark's build issue X-Git-Tag: 0.35~7 X-Git-Url: https://git.m6w6.name/?a=commitdiff_plain;h=71bdce52369e13cb97de723bde02ab30ae1404fb;p=m6w6%2Flibmemcached Trond's fix for Mark's build issue --- diff --git a/libmemcached/common.h b/libmemcached/common.h index 30fc4e12..b46d5ba0 100644 --- a/libmemcached/common.h +++ b/libmemcached/common.h @@ -64,8 +64,8 @@ struct memcached_continuum_item_st { #else -#define likely(x) if(__builtin_expect(!!(x), 1)) -#define unlikely(x) if(__builtin_expect((x), 0)) +#define likely(x) if(__builtin_expect((x) != 0, 1)) +#define unlikely(x) if(__builtin_expect((x) != 0, 0)) #endif