aboutsummaryrefslogtreecommitdiff
path: root/assert
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>2003-08-14 21:48:29 +0000
committerUlrich Drepper <drepper@redhat.com>2003-08-14 21:48:29 +0000
commit9b0a6e9600aba7d629f1e69b799af8a94d06846c (patch)
tree004d33ef8f094e54616ccd2ea6549e19ab5ee162 /assert
parent41d70e88b1e4d25553f3c581b04d012e140e2868 (diff)
downloadglibc-9b0a6e9600aba7d629f1e69b799af8a94d06846c.tar
glibc-9b0a6e9600aba7d629f1e69b799af8a94d06846c.tar.gz
glibc-9b0a6e9600aba7d629f1e69b799af8a94d06846c.tar.bz2
glibc-9b0a6e9600aba7d629f1e69b799af8a94d06846c.zip
Update.
* assert/assert.h (assert): Use !! in front of expression to allow use of pointers.
Diffstat (limited to 'assert')
-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