aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--kern/assert.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/kern/assert.h b/kern/assert.h
index 73e2a176..fed2a204 100644
--- a/kern/assert.h
+++ b/kern/assert.h
@@ -40,7 +40,7 @@ extern void Assert(const char *exp, const char *filename, int line,
const char *fun) __attribute__ ((noreturn));
#define assert(ex) \
- ((ex) \
+ (likely(ex) \
? (void) (0) \
: Assert (#ex, __FILE__, __LINE__, __FUNCTION__))