aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIan Moffett <ian@osmora.org>2023-12-12 22:50:14 -0500
committerIan Moffett <ian@osmora.org>2023-12-12 22:50:14 -0500
commitb5fc694e9283232da2b6c2f52a2afa5a44594798 (patch)
tree32a7d0e2d461a9cd2107154fd75709e6bfb289ad
parent43d599539c1f543dafbc4fc806af9e62f9d705bb (diff)
kernel: lib: Fix warnings with __assert()
Signed-off-by: Ian Moffett <ian@osmora.org>
-rw-r--r--sys/include/lib/assert.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/include/lib/assert.h b/sys/include/lib/assert.h
index ce0c15b..2156b6c 100644
--- a/sys/include/lib/assert.h
+++ b/sys/include/lib/assert.h
@@ -34,7 +34,7 @@
#include <sys/types.h>
#define __assert(condition) \
- if ((uintptr_t)condition == 0) { \
+ if ((uintptr_t)(condition) == 0) { \
panic("Assert \"%s\" failed\n", #condition); \
}