[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[tyndur-devel] [PATCH 6/6] libc: Typisierungsfix fuer assert



! libc: Der Parameter fuer assert muss in C99 und C++ kein int sein

Signed-off-by: Kevin Wolf <kevin@xxxxxxxxxx>
---
 src/modules/include/assert.h |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/src/modules/include/assert.h b/src/modules/include/assert.h
index cc9a4cd..3ed64f6 100644
--- a/src/modules/include/assert.h
+++ b/src/modules/include/assert.h
@@ -38,6 +38,6 @@ void _assert(const char* assertion, const char* file, int line,
     int expression);
 
 // Das #x verwandelt x in einen String
-#define assert(x) _assert(#x, __FILE__, __LINE__, x)
+#define assert(x) _assert(#x, __FILE__, __LINE__, !!(x))
 #endif
 
-- 
1.6.0.2