From fdd760c5397f498dc5c6cf7334de636c09ec1a76 Mon Sep 17 00:00:00 2001 From: Mikael Patel Date: Wed, 10 Jun 2015 21:13:36 +0200 Subject: [PATCH] Correct ASSERT macro. --- cores/cosa/Cosa/Trace.hh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cores/cosa/Cosa/Trace.hh b/cores/cosa/Cosa/Trace.hh index eb373ab1..2ebcbe03 100644 --- a/cores/cosa/Cosa/Trace.hh +++ b/cores/cosa/Cosa/Trace.hh @@ -126,7 +126,7 @@ extern uint8_t trace_log_mask; */ # define ASSERT(expr) \ do { \ - if (UNLIKELY!(expr))) FATAL("assert:" #expr); \ + if (UNLIKELY(!(expr))) FATAL("assert:" #expr); \ } while (0) /**