From b5fc694e9283232da2b6c2f52a2afa5a44594798 Mon Sep 17 00:00:00 2001 From: Ian Moffett Date: Tue, 12 Dec 2023 22:50:14 -0500 Subject: kernel: lib: Fix warnings with __assert() Signed-off-by: Ian Moffett --- sys/include/lib/assert.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sys/include/lib') 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 #define __assert(condition) \ - if ((uintptr_t)condition == 0) { \ + if ((uintptr_t)(condition) == 0) { \ panic("Assert \"%s\" failed\n", #condition); \ } -- cgit v1.2.3