]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
r7341@Kushana: nickm | 2006-08-11 00:51:05 -0700
authorNick Mathewson <nickm@torproject.org>
Fri, 11 Aug 2006 07:51:34 +0000 (07:51 +0000)
committerNick Mathewson <nickm@torproject.org>
Fri, 11 Aug 2006 07:51:34 +0000 (07:51 +0000)
 Amazing how much difference adding a ! to all your asserts can make.

svn:r7029

src/common/util.h

index 7db4f28647812dc16d38d26ba08b06ff51d28a26..b5e104beba4602f6d919e153a626c6f132744a35 100644 (file)
@@ -39,7 +39,7 @@
 #error "Sorry; we don't support building with NDEBUG."
 #else
 #ifdef __GNUC__
-#define PREDICT_FALSE(x) PREDICT((x) != ((typeof(x)) 0), 0)
+#define PREDICT_FALSE(x) PREDICT((x) == ((typeof(x)) 0), 0)
 #else
 #define PREDICT_FALSE(x) !(x)
 #endif