aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2006-08-11 07:51:34 +0000
committerNick Mathewson <nickm@torproject.org>2006-08-11 07:51:34 +0000
commitb68ffcc193c81abc8aa1b670bb10cbc45a70134e (patch)
tree1687c734dfa072de0817c5499cd9205b45610449 /src
parent33fc8292739296811fc53ae465e3245a2b598c3a (diff)
downloadtor-b68ffcc193c81abc8aa1b670bb10cbc45a70134e.tar
tor-b68ffcc193c81abc8aa1b670bb10cbc45a70134e.tar.gz
r7341@Kushana: nickm | 2006-08-11 00:51:05 -0700
Amazing how much difference adding a ! to all your asserts can make. svn:r7029
Diffstat (limited to 'src')
-rw-r--r--src/common/util.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/common/util.h b/src/common/util.h
index 7db4f2864..b5e104beb 100644
--- a/src/common/util.h
+++ b/src/common/util.h
@@ -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