Browse Source

Change nk_bool static assert to >= 2

Michael Aganier 5 years ago
parent
commit
76f430c969
2 changed files with 2 additions and 2 deletions
  1. 1 1
      nuklear.h
  2. 1 1
      src/nuklear.h

+ 1 - 1
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
 
 /* ============================================================================

+ 1 - 1
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
 
 /* ============================================================================