diff options
Diffstat (limited to 'zencore')
| -rw-r--r-- | zencore/include/zencore/iobuffer.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/zencore/include/zencore/iobuffer.h b/zencore/include/zencore/iobuffer.h index a2ec6743d..a515f7af8 100644 --- a/zencore/include/zencore/iobuffer.h +++ b/zencore/include/zencore/iobuffer.h @@ -10,7 +10,7 @@ namespace zen { struct IoBufferExtendedCore; -enum class ZenContentType +enum class ZenContentType : uint8_t { kBinary, // Note that since this is zero, this will be the default value in IoBuffer kText, @@ -170,6 +170,8 @@ protected: kContentTypeMask = 0xf }; + static_assert((uint32_t(ZenContentType::kUnknownContentType) & ~kContentTypeMask) == 0); + enum Flags { kIsOwnedByThis = 1 << 0, |