From 9b0a6e9600aba7d629f1e69b799af8a94d06846c Mon Sep 17 00:00:00 2001 From: Ulrich Drepper Date: Thu, 14 Aug 2003 21:48:29 +0000 Subject: Update. * assert/assert.h (assert): Use !! in front of expression to allow use of pointers. --- assert/assert.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'assert') 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 -- cgit v1.2.3