Change nk_bool static assert to >= 2

This commit is contained in:
Michael Aganier 2020-09-08 07:26:06 -04:00
parent 1e21ef2285
commit 76f430c969
2 changed files with 2 additions and 2 deletions

View File

@ -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
/* ============================================================================

View File

@ -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
/* ============================================================================