aboutsummaryrefslogtreecommitdiff
path: root/assert/assert.h
diff options
context:
space:
mode:
Diffstat (limited to 'assert/assert.h')
-rw-r--r--assert/assert.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/assert/assert.h b/assert/assert.h
index 9908d4176a..b511d116d9 100644
--- a/assert/assert.h
+++ b/assert/assert.h
@@ -89,7 +89,7 @@ __END_DECLS
enough estimate for when the feature became available. */
# if __GNUC_PREREQ (3, 0)
# define assert(expr) \
- (__ASSERT_VOID_CAST (__builtin_expect (expr, 1) ? 0 : \
+ (__ASSERT_VOID_CAST (__builtin_expect (!!(expr), 1) ? 0 : \
(__assert_fail (__STRING(expr), __FILE__, __LINE__, \
__ASSERT_FUNCTION), 0)))
# else