From 76f430c9693e237ea894f9fdbc789aea871e86d7 Mon Sep 17 00:00:00 2001 From: Michael Aganier Date: Tue, 8 Sep 2020 07:26:06 -0400 Subject: [PATCH] Change nk_bool static assert to >= 2 --- nuklear.h | 2 +- src/nuklear.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/nuklear.h b/nuklear.h index f353a73..2388993 100644 --- a/nuklear.h +++ b/nuklear.h @@ -437,7 +437,7 @@ NK_STATIC_ASSERT(sizeof(nk_ptr) >= sizeof(void*)); #ifdef NK_INCLUDE_STANDARD_BOOL NK_STATIC_ASSERT(sizeof(nk_bool) == sizeof(bool)); #else -NK_STATIC_ASSERT(sizeof(nk_bool) == 4); +NK_STATIC_ASSERT(sizeof(nk_bool) >= 2); #endif /* ============================================================================ diff --git a/src/nuklear.h b/src/nuklear.h index f44b927..d0a8f78 100644 --- a/src/nuklear.h +++ b/src/nuklear.h @@ -216,7 +216,7 @@ NK_STATIC_ASSERT(sizeof(nk_ptr) >= sizeof(void*)); #ifdef NK_INCLUDE_STANDARD_BOOL NK_STATIC_ASSERT(sizeof(nk_bool) == sizeof(bool)); #else -NK_STATIC_ASSERT(sizeof(nk_bool) == 4); +NK_STATIC_ASSERT(sizeof(nk_bool) >= 2); #endif /* ============================================================================